]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix remote.php
authorGeorg Ehrke <dev@georgswebsite.de>
Mon, 7 May 2012 09:24:00 +0000 (11:24 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Mon, 7 May 2012 09:24:00 +0000 (11:24 +0200)
remote.php

index ab5364aad6e9496ea367c544b2765f7a6be2c0ac..db2d1756f7a89a851962143cb2ac64fcf8b7cf8b 100644 (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);