Browse Source

Merge pull request #4108 from fps01/master

Fixed a call of function "generateRandomKey()" in app\base\Security
tags/2.0.0-rc
Carsten Brandt 10 years ago
parent
commit
c484536b28
  1. 2
      framework/base/Security.php

2
framework/base/Security.php

@ -298,7 +298,7 @@ class Security extends Component
}
if (!isset($this->_keys[$name]) || $regenerate) {
$this->_keys[$name] = utf8_encode(static::generateRandomKey($length));
$this->_keys[$name] = utf8_encode($this->generateRandomKey($length));
file_put_contents($keyFile, json_encode($this->_keys));
}

Loading…
Cancel
Save