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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/Http
diff options
context:
space:
mode:
authorJens Averkamp <jens.averkamp@zweiloewen.com>2015-07-24 19:15:23 +0300
committersgiehl <stefan@piwik.org>2015-10-06 18:25:26 +0300
commit0ba1bdd19a1566e8527527c08684dd638f42a8cc (patch)
treedaa17c5de67c52386258b486fffe678a55856181 /core/Http
parent6b836717d6391adf891e2fd60f8787f033d726b8 (diff)
Fix issue #8422
Author: Jens Averkamp <j.averkamp@two-developers.com>
Diffstat (limited to 'core/Http')
-rw-r--r--core/Http/ControllerResolver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Http/ControllerResolver.php b/core/Http/ControllerResolver.php
index ee1af9acc0..e0fe7d98e3 100644
--- a/core/Http/ControllerResolver.php
+++ b/core/Http/ControllerResolver.php
@@ -78,7 +78,7 @@ class ControllerResolver
$action = $action ?: $controller->getDefaultAction();
- if (!is_callable(array($controller, $action))) {
+ if (!is_callable(array($controller, $action)) || !in_array($action, get_class_methods($controller))) {
return null;
}