diff options
author | Joas Schilling <coding@schilljs.com> | 2018-09-27 16:28:47 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-10-10 13:01:23 +0200 |
commit | f64bd62f8e438fe36a6c070ac445a07ad22439e4 (patch) | |
tree | d21f5e8bb610226387c749dc277f460a19e8a145 /public.php | |
parent | 6642efa7f4e707dcbe74dc67f7403a7c82a7a2f4 (diff) | |
download | nextcloud-server-f64bd62f8e438fe36a6c070ac445a07ad22439e4.tar.gz nextcloud-server-f64bd62f8e438fe36a6c070ac445a07ad22439e4.zip |
Return 404 when the service is not available
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'public.php')
-rw-r--r-- | public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public.php b/public.php index d50f49e2536..f033e1897c8 100644 --- a/public.php +++ b/public.php @@ -54,7 +54,7 @@ try { list($service) = explode('/', $pathInfo); } $file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service)); - if ($file === null) { + if ($file === '') { http_response_code(404); exit; } |