Browse Source

Merge pull request #1525 from dizews/patch-1

Update BaseSecurity.php
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
02cf3ddef2
  1. 2
      framework/yii/helpers/BaseSecurity.php

2
framework/yii/helpers/BaseSecurity.php

@ -302,7 +302,7 @@ class BaseSecurity
$test = crypt($password, $hash);
$n = strlen($test);
if (strlen($test) < 32 || $n !== strlen($hash)) {
if ($n < 32 || $n !== strlen($hash)) {
return false;
}

Loading…
Cancel
Save