diff options
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/remote.php b/remote.php index 7131dfc9407..55b088d775e 100644 --- a/remote.php +++ b/remote.php @@ -17,9 +17,9 @@ if(is_null($file)){ exit; } -$parts=explode('/',$file); -$app=$parts[2]; +$parts=explode('/', $file, 2); +$app=$parts[0]; OC_App::loadApp($app); $baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/'; -require_once(OC::$APPSROOT . $file);
\ No newline at end of file +require_once(OC_App::getAppPath($app) .'/'. $parts[1]);
\ No newline at end of file |