Permalink
Browse files

BUGFIX: Made CSRF-error wording friendlier.

  • Loading branch information...
1 parent b6fd276 commit 9a2ba483dfe3207bb18c2571a7ee31fbbef27f38 @sminnee sminnee committed with chillu Sep 1, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 forms/Form.php
View
@@ -250,7 +250,9 @@ public function httpSubmission($request) {
// Protection against CSRF attacks
$token = $this->getSecurityToken();
if(!$token->checkRequest($request)) {
- $this->httpError(400, "Sorry, your session has timed out.");
+ $this->httpError(400, _t("Form.CSRF_FAILED_MESSAGE",
+ "There seems to have been a technical problem. Please click the back button,"
+ . " refresh your browser, and try again."));
}
// Determine the action button clicked

0 comments on commit 9a2ba48

Please sign in to comment.