From 0417cbafd045b13e86c33d72f0a3fd318f97eb43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Bertol=C3=ADn?= Date: Tue, 4 Oct 2016 14:51:54 +0200 Subject: Changed request to not add a prefix to the url (#26256) * Changed request to not add a prefix to the url * Expecting forbidden instead of service unavailable * Handling login exceptions --- index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index ce4cdf06e7e..d2f920f4a59 100644 --- a/index.php +++ b/index.php @@ -48,6 +48,9 @@ try { } catch (\OC\HintException $ex) { OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); +} catch (\OC\User\LoginException $ex) { + OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); + OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); } catch (Exception $ex) { \OC::$server->getLogger()->logException($ex, array('app' => 'index')); -- cgit v1.2.3