Commit 039909a8 by fps01

Fixed a call of function "generateRandomKey()" in app\base\Security

parent 399b6b18
...@@ -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