Merge pull request #4108 from fps01/master

Fixed a call of function "generateRandomKey()" in app\base\Security
This commit is contained in:
Carsten Brandt
2014-06-29 12:06:29 +02:00

View File

@@ -298,7 +298,7 @@ class Security extends Component
} }
if (!isset($this->_keys[$name]) || $regenerate) { 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)); file_put_contents($keyFile, json_encode($this->_keys));
} }