summaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
Diffstat (limited to 'public.php')
-rw-r--r--public.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/public.php b/public.php
index 0479d5f92d4..9add9ef6d01 100644
--- a/public.php
+++ b/public.php
@@ -39,11 +39,12 @@ try {
OC::checkSingleUserMode();
$request = \OC::$server->getRequest();
$pathInfo = $request->getPathInfo();
- if (!$pathInfo && !isset($request->server['service'])) {
+
+ if (!$pathInfo && $request->getParam('service', '') === '') {
header('HTTP/1.0 404 Not Found');
exit;
- } elseif (isset($request->server['service'])) {
- $service = $request->server['service'];
+ } elseif ($request->getParam('service', '')) {
+ $service = $request->getParam('service', '');
} else {
$pathInfo = trim($pathInfo, '/');
list($service) = explode('/', $pathInfo);