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
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-03-23 21:58:32 +0300
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-03-23 21:58:32 +0300
commita0f10f5e3f26fd167f6b05b6c179b9cc94cbd154 (patch)
tree8b49817250f5a5055ab8f08e437c47143110f1c9 /plugins/Feedback
parent9f4b23ae184eb9cf4623a0ada4616d8d8bf81ef5 (diff)
fixes #1236 - handle browser/extension/add-on causing a double page load, invalidating the token in the form; refactor Nonce class out of Piwik.php
Diffstat (limited to 'plugins/Feedback')
-rw-r--r--plugins/Feedback/Controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Feedback/Controller.php b/plugins/Feedback/Controller.php
index 9804ee55b8..a626e71989 100644
--- a/plugins/Feedback/Controller.php
+++ b/plugins/Feedback/Controller.php
@@ -19,7 +19,7 @@ class Piwik_Feedback_Controller extends Piwik_Controller
function index()
{
$view = Piwik_View::factory('index');
- $view->nonce = Piwik::getNonce('Piwik_Feedback.sendFeedback', 3600);
+ $view->nonce = Piwik_Nonce::getNonce('Piwik_Feedback.sendFeedback', 3600);
echo $view->render();
}
@@ -49,7 +49,7 @@ class Piwik_Feedback_Controller extends Piwik_Controller
{
throw new Exception(Piwik_TranslateException('Feedback_ExceptionNoUrls'));
}
- if(!Piwik::verifyNonce('Piwik_Feedback.sendFeedback', $nonce))
+ if(!Piwik_Nonce::verifyNonce('Piwik_Feedback.sendFeedback', $nonce))
{
throw new Exception(Piwik_TranslateException('General_ExceptionNonceMismatch'));
}