aboutsummaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-07 15:39:17 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-07 15:39:17 +0200
commit936c8ba1cc3b36fdc122276fc9a96de4a4003bd1 (patch)
treebc78ce93b5cafaead97d054c640d2f7e88be967d /remote.php
parent5904d5cf50ba5567fac40e6fa1f1ded6a9f48bcd (diff)
downloadnextcloud-server-936c8ba1cc3b36fdc122276fc9a96de4a4003bd1.tar.gz
nextcloud-server-936c8ba1cc3b36fdc122276fc9a96de4a4003bd1.zip
improve remote.php and create public.php
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote.php b/remote.php
index db2d1756f7a..2a7ab167d04 100644
--- a/remote.php
+++ b/remote.php
@@ -7,10 +7,10 @@ if (!$pos = strpos($path_info, '/', 1)) {
$pos = strlen($path_info);
}
$service=substr($path_info, 1, $pos-1);
-$file = OCP\CONFIG::getAppValue('core', $service);
+$file = OCP\CONFIG::getAppValue('core', 'remote_' . $service);
if(is_null($file)){
- //header('HTTP/1.0 404 Not Found');
+ header('HTTP/1.0 404 Not Found');
exit;
}
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
-require_once(OC::$APPSROOT . $file);
+require_once(OC::$APPSROOT . $file); \ No newline at end of file