diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-23 22:43:51 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-23 22:43:51 +0100 |
commit | 0cdc2cebbf9551652cc6df0433126bd840169e8a (patch) | |
tree | d0e1cf338150492d49c46717a4164a53a8c80f02 | |
parent | e87ada86d16043402f64ae45d75995a6cffb7c51 (diff) | |
parent | 615bc5a827f8d397ce75e3efb3341cee2f542e02 (diff) | |
download | nextcloud-server-0cdc2cebbf9551652cc6df0433126bd840169e8a.tar.gz nextcloud-server-0cdc2cebbf9551652cc6df0433126bd840169e8a.zip |
Merge pull request #14433 from owncloud/fix-public-php
Use `getParam` instead of `server`
-rw-r--r-- | public.php | 7 |
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); |