From fb7840b283e3033b18869adf09cb2e66e4b2485d Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 18 Dec 2018 09:04:29 -0100 Subject: returns a 501 instead of exception if app is not installed - #13088 Signed-off-by: Maxence Lange --- public.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public.php') diff --git a/public.php b/public.php index f033e1897c8..ae95624e8d9 100644 --- a/public.php +++ b/public.php @@ -68,7 +68,8 @@ try { OC_App::loadApps(array('filesystem', 'logging')); if (!\OC::$server->getAppManager()->isInstalled($app)) { - throw new Exception('App not installed: ' . $app); + http_response_code(501); + exit; } OC_App::loadApp($app); OC_User::setIncognitoMode(true); -- cgit v1.2.3