From 039909a84625f4874a6fee497f8cda854f8a1023 Mon Sep 17 00:00:00 2001 From: fps01 Date: Sun, 29 Jun 2014 12:23:06 +0400 Subject: [PATCH] Fixed a call of function "generateRandomKey()" in app\base\Security --- framework/base/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/Security.php b/framework/base/Security.php index 82b36820f4..c577f19ab6 100644 --- a/framework/base/Security.php +++ b/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)); }