Commit c484536b by Carsten Brandt

Merge pull request #4108 from fps01/master

Fixed a call of function "generateRandomKey()" in app\base\Security
parents 399b6b18 039909a8
...@@ -298,7 +298,7 @@ class Security extends Component ...@@ -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));
} }
......
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