Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio BertolĂ­n <sbertolin@solidgear.es>2016-10-04 15:51:54 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-10-20 18:21:08 +0300
commit0417cbafd045b13e86c33d72f0a3fd318f97eb43 (patch)
tree02880f0b016cb1746251d481048a0b17d5b3922f /index.php
parented4ed7911a9329462fef02c2d50709b3f092538e (diff)
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'));