Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-09-27 17:28:47 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-10-10 14:01:23 +0300
commitf64bd62f8e438fe36a6c070ac445a07ad22439e4 (patch)
treed21f5e8bb610226387c749dc277f460a19e8a145 /public.php
parent6642efa7f4e707dcbe74dc67f7403a7c82a7a2f4 (diff)
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;
}