Skip to content

Commit

Permalink
returns a 501 instead of exception if app is not installed - nextclou…
Browse files Browse the repository at this point in the history
…d#13088

Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl authored and juliusknorr committed Dec 19, 2018
1 parent 3d53398 commit fb7840b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
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);
Expand Down

0 comments on commit fb7840b

Please sign in to comment.