From efe33a2187ceb501e3c2038016c89f8423b8bcaa Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 28 Aug 2014 09:53:44 +0300 Subject: Fix CI_Security::get_random_bytes() length validation --- system/core/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core/Security.php') diff --git a/system/core/Security.php b/system/core/Security.php index bc224e7e3..782d3e83c 100755 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -559,7 +559,7 @@ class CI_Security { */ public function get_random_bytes($length) { - if (empty($length) OR ! ctype_digit($length)) + if (empty($length) OR ! ctype_digit((string) $length)) { return FALSE; } -- cgit v1.2.3-24-g4f1b