diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-12-18 09:04:29 -0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-12-19 07:41:25 +0100 |
commit | fb7840b283e3033b18869adf09cb2e66e4b2485d (patch) | |
tree | 55a89aa09899e52e77e5c4ab37fb3cc48571463a /public.php | |
parent | 3d53398d07a9ce9bb5605c770505ac88f3e0bba5 (diff) | |
download | nextcloud-server-fb7840b283e3033b18869adf09cb2e66e4b2485d.tar.gz nextcloud-server-fb7840b283e3033b18869adf09cb2e66e4b2485d.zip |
returns a 501 instead of exception if app is not installed - #13088
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'public.php')
-rw-r--r-- | public.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); |