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
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-06-19 09:28:39 +0400
committermattab <matthieu.aubry@gmail.com>2014-06-19 09:28:39 +0400
commit21617726bdb86abe163aed92d586d54b1433cc7e (patch)
tree5d169f0267c70942d55414a29fff4ccb829da224 /core
parentea1d064dc3cf1bcc91fa5b10f4b3f268cc9c11dd (diff)
Maybe this fixes the UI tests
Diffstat (limited to 'core')
-rw-r--r--core/Plugin/Controller.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/Plugin/Controller.php b/core/Plugin/Controller.php
index 8abd6e096c..43e385f263 100644
--- a/core/Plugin/Controller.php
+++ b/core/Plugin/Controller.php
@@ -828,12 +828,7 @@ abstract class Controller
*/
protected function checkTokenInUrl()
{
- $requestTokenAuth = Common::getRequestVar('token_auth', false, 'string');
- if($requestTokenAuth === false) {
- $requestTokenAuth = null;
- }
- $currentUserTokenAuth = Piwik::getCurrentUserTokenAuth();
- if ($requestTokenAuth !== $currentUserTokenAuth) {
+ if (Common::getRequestVar('token_auth', false) != Piwik::getCurrentUserTokenAuth()) {
throw new NoAccessException(Piwik::translate('General_ExceptionInvalidToken'));
}
}