aboutsummaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-09-27 16:28:47 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-10-10 13:01:23 +0200
commitf64bd62f8e438fe36a6c070ac445a07ad22439e4 (patch)
treed21f5e8bb610226387c749dc277f460a19e8a145 /public.php
parent6642efa7f4e707dcbe74dc67f7403a7c82a7a2f4 (diff)
downloadnextcloud-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.php2
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;
}