aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-12-18 09:04:29 -0100
committerBackportbot <backportbot-noreply@rullzer.com>2019-01-04 16:08:52 +0000
commite2d7c2fabb7264d732de0ce01602d36ed1c7c592 (patch)
treea0c2bda7883fb86a2b679cf167d173748db338a6
parent2c72e4440098f5a61553d60cf2c3cdd52481920c (diff)
downloadnextcloud-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.php3
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);