mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #370 from mateusz/csrf_message
MINOR: change the ugly user-facing CSRF message to more friendly
This commit is contained in:
commit
7483970f68
@ -240,7 +240,7 @@ class Form extends RequestHandler {
|
|||||||
// Protection against CSRF attacks
|
// Protection against CSRF attacks
|
||||||
$token = $this->getSecurityToken();
|
$token = $this->getSecurityToken();
|
||||||
if(!$token->checkRequest($request)) {
|
if(!$token->checkRequest($request)) {
|
||||||
$this->httpError(400, "Security token doesn't match, possible CSRF attack.");
|
$this->httpError(400, "Sorry, your session has timed out.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine the action button clicked
|
// Determine the action button clicked
|
||||||
|
Loading…
Reference in New Issue
Block a user