CC-5821: Airtime Analyzer: Ftp-uploaded folder doesn't get removed from organize

Was using wrong position when using substr()
This commit is contained in:
drigato 2014-04-28 15:52:08 -04:00
parent f9f9e2458e
commit c586e3e2b8
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ class Rest_MediaController extends Zend_Rest_Controller
if (isset($whiteList["full_path"])) {
$fullPath = $whiteList["full_path"];
$basePath = isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."/srv/airtime/stor/organize/" : "/srv/airtime/stor/organize/";
$relativePath = substr($fullPath, strlen($basePath));
$relativePath = substr($fullPath, strlen($basePath)-1);
} else {
$relativePath = $_FILES["file"]["name"];
}