fix remote.php

This commit is contained in:
Georg Ehrke 2012-05-07 11:24:00 +02:00
parent f69f764e8b
commit 5a264040d4
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ if (!$pos = strpos($path_info, '/', 1)) {
$service=substr($path_info, 1, $pos-1);
$file = OCP\CONFIG::getAppValue('core', $service);
if(is_null($file)){
header('HTTP/1.0 404 Not Found');
//header('HTTP/1.0 404 Not Found');
exit;
}
$baseuri = '/remote.php/'.$service.'/';
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
require_once(OC::$APPSROOT . $file);