aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorSergio BertolĂ­n <sbertolin@solidgear.es>2016-10-04 14:51:54 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-10-20 17:21:08 +0200
commit0417cbafd045b13e86c33d72f0a3fd318f97eb43 (patch)
tree02880f0b016cb1746251d481048a0b17d5b3922f /index.php
parented4ed7911a9329462fef02c2d50709b3f092538e (diff)
downloadnextcloud-server-0417cbafd045b13e86c33d72f0a3fd318f97eb43.tar.gz
nextcloud-server-0417cbafd045b13e86c33d72f0a3fd318f97eb43.zip
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
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
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'));