Browse Source

Return 404 when the service is not available

Signed-off-by: Joas Schilling <coding@schilljs.com>
Joas Schilling 5 years ago
parent
commit
f64bd62f8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public.php

+ 1 - 1
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;
 	}