returns a 501 instead of exception if app is not installed - #13088

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/13134/head
Maxence Lange 5 years ago committed by Julius Härtl
parent 3d53398d07
commit fb7840b283
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF

@ -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);

Loading…
Cancel
Save