From f64bd62f8e438fe36a6c070ac445a07ad22439e4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 27 Sep 2018 16:28:47 +0200 Subject: Return 404 when the service is not available Signed-off-by: Joas Schilling --- public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public.php') 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; } -- cgit v1.2.3