Return 404 when the service is not available
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6642efa7f4
commit
f64bd62f8e
|
@ -54,7 +54,7 @@ try {
|
||||||
list($service) = explode('/', $pathInfo);
|
list($service) = explode('/', $pathInfo);
|
||||||
}
|
}
|
||||||
$file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
|
$file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
|
||||||
if ($file === null) {
|
if ($file === '') {
|
||||||
http_response_code(404);
|
http_response_code(404);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue