summaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-23 22:43:51 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-23 22:43:51 +0100
commit0cdc2cebbf9551652cc6df0433126bd840169e8a (patch)
treed0e1cf338150492d49c46717a4164a53a8c80f02 /public.php
parente87ada86d16043402f64ae45d75995a6cffb7c51 (diff)
parent615bc5a827f8d397ce75e3efb3341cee2f542e02 (diff)
downloadnextcloud-server-0cdc2cebbf9551652cc6df0433126bd840169e8a.tar.gz
nextcloud-server-0cdc2cebbf9551652cc6df0433126bd840169e8a.zip
Merge pull request #14433 from owncloud/fix-public-php
Use `getParam` instead of `server`
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);