diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-19 09:28:39 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-19 09:28:39 +0400 |
commit | 21617726bdb86abe163aed92d586d54b1433cc7e (patch) | |
tree | 5d169f0267c70942d55414a29fff4ccb829da224 /core | |
parent | ea1d064dc3cf1bcc91fa5b10f4b3f268cc9c11dd (diff) |
Maybe this fixes the UI tests
Diffstat (limited to 'core')
-rw-r--r-- | core/Plugin/Controller.php | 7 |
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')); } } |