diff options
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/remote.php b/remote.php index a58b1c0a0fc..ef610f36947 100644 --- a/remote.php +++ b/remote.php @@ -20,7 +20,6 @@ if(is_null($file)){ OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND); exit; } - if(count(explode('/',$file)) == 3) { $parts=explode('/',$file); $app=$parts[2]; @@ -28,9 +27,9 @@ if(count(explode('/',$file)) == 3) { $baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/'; require_once( OC::$SERVERROOT.$file); } else { - $parts=explode('/', $file, 2); - $app=$parts[0]; + $parts=explode('/', $file, 4); + $app=$parts[2]; OC_App::loadApp($app); $baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/'; - require_once(OC_App::getAppPath($app) .'/'. $parts[1]); + require_once(OC_App::getAppPath($app) .'/'. $parts[3]); } |