mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Made CSRF-error wording friendlier.
This commit is contained in:
parent
b6fd27663a
commit
9a2ba483df
@ -250,7 +250,9 @@ class Form extends RequestHandler {
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user