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:
parent
f9f9e2458e
commit
c586e3e2b8
|
@ -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"];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue