Skip to content

Commit deefb9e

Browse files
committed
returns a 404 instead of exception if app is not installed - #13088
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 6f994be commit deefb9e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
OC_App::loadApps(array('filesystem', 'logging'));
6969

7070
if (!\OC::$server->getAppManager()->isInstalled($app)) {
71-
throw new Exception('App not installed: ' . $app);
71+
http_response_code(404);
72+
exit;
7273
}
7374
OC_App::loadApp($app);
7475
OC_User::setIncognitoMode(true);

0 commit comments

Comments
 (0)