diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-12-18 09:04:29 -0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-01-04 16:08:52 +0000 |
commit | e2d7c2fabb7264d732de0ce01602d36ed1c7c592 (patch) | |
tree | a0c2bda7883fb86a2b679cf167d173748db338a6 | |
parent | 2c72e4440098f5a61553d60cf2c3cdd52481920c (diff) | |
download | nextcloud-server-e2d7c2fabb7264d732de0ce01602d36ed1c7c592.tar.gz nextcloud-server-e2d7c2fabb7264d732de0ce01602d36ed1c7c592.zip |
returns a 501 instead of exception if app is not installed - #13088
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-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); |