Commit 9822dfae by Carsten Brandt

typo

parent e7e6bee9
...@@ -1136,7 +1136,7 @@ class Request extends \yii\base\Request ...@@ -1136,7 +1136,7 @@ class Request extends \yii\base\Request
public function validateCsrfToken() public function validateCsrfToken()
{ {
$method = $this->getMethod(); $method = $this->getMethod();
// only validate CSRF token on "safe" methods http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1 // only validate CSRF token on non-"safe" methods http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1
if (!$this->enableCsrfValidation || in_array($method, ['GET', 'HEAD', 'OPTIONS'], true)) { if (!$this->enableCsrfValidation || in_array($method, ['GET', 'HEAD', 'OPTIONS'], true)) {
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment