Browse Source

Fixes #1671

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
c31e113d95
  1. 2
      framework/yii/web/Request.php

2
framework/yii/web/Request.php

@ -1121,7 +1121,7 @@ class Request extends \yii\base\Request
private function validateCsrfTokenInternal($token, $trueToken) private function validateCsrfTokenInternal($token, $trueToken)
{ {
$token = str_replace('.', '+', base64_decode($token)); $token = base64_decode(str_replace('.', '+', $token));
$n = StringHelper::byteLength($token); $n = StringHelper::byteLength($token);
if ($n <= self::CSRF_MASK_LENGTH) { if ($n <= self::CSRF_MASK_LENGTH) {
return false; return false;

Loading…
Cancel
Save