Skip to content
Snippets Groups Projects
Commit f64bd62f authored by Joas Schilling's avatar Joas Schilling Committed by Daniel Calviño Sánchez
Browse files

Return 404 when the service is not available

parent 6642efa7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment