aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/ActionRouter.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2021-12-17 22:32:51 +0100
committerAndreas Gohr <andi@splitbrain.org>2021-12-17 22:32:51 +0100
commitecad51dd492a107c65ae1265bcca591769433e6c (patch)
tree56f4c96b839030c8995f3400055265c379347647 /inc/ActionRouter.php
parente6699927414e1778fc6313d97c88e92762b61fec (diff)
downloaddokuwiki-ecad51dd492a107c65ae1265bcca591769433e6c.tar.gz
dokuwiki-ecad51dd492a107c65ae1265bcca591769433e6c.zip
fix handling of loading auth backend
When a non existing auth backend was configured, the action router ran into an infinie loop exception. The reason was that the denied action required a configured auth system, but denying access should always work. Interestingly the problem did not occur when the auth backend signalled a failure to load. This was because the auth backend was not properly deinitialized. This is now done. To aid debugging similar problems, fatal errors are now logged through the logging mechanism in the action router
Diffstat (limited to 'inc/ActionRouter.php')
-rw-r--r--inc/ActionRouter.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/ActionRouter.php b/inc/ActionRouter.php
index 7d8a72acf..300a56cd0 100644
--- a/inc/ActionRouter.php
+++ b/inc/ActionRouter.php
@@ -156,6 +156,7 @@ class ActionRouter {
if(defined('DOKU_UNITTEST')) {
throw $e;
}
+ ErrorHandler::logException($e);
$msg = 'Something unforeseen has happened: ' . $e->getMessage();
nice_die(hsc($msg));
}