mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 21:29:23 +02:00
Merge branch 'origin/3.0' into 3.1
This commit is contained in:
commit
bed25a7a79
@ -61,11 +61,8 @@ class ParameterConfirmationToken {
|
|||||||
// Store the token
|
// Store the token
|
||||||
$this->token = isset($_GET[$parameterName.'token']) ? $_GET[$parameterName.'token'] : null;
|
$this->token = isset($_GET[$parameterName.'token']) ? $_GET[$parameterName.'token'] : null;
|
||||||
|
|
||||||
// If a token was provided, but isn't valid, just throw a 403
|
// If a token was provided, but isn't valid, ignore it
|
||||||
if ($this->token && (!$this->checkToken($this->token))) {
|
if ($this->token && (!$this->checkToken($this->token))) $this->token = null;
|
||||||
header("HTTP/1.0 403 Forbidden", true, 403);
|
|
||||||
die;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function parameterProvided() {
|
public function parameterProvided() {
|
||||||
|
Loading…
Reference in New Issue
Block a user