From: Georg Ehrke Date: Mon, 7 May 2012 09:24:00 +0000 (+0200) Subject: fix remote.php X-Git-Tag: v4.0.0beta~1^2~16^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5a264040d4d27dfd8f754545fcbff980cc1a81f4;p=nextcloud-server.git fix remote.php --- diff --git a/remote.php b/remote.php index ab5364aad6e..db2d1756f7a 100644 --- a/remote.php +++ b/remote.php @@ -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);