commit | efe33a2187ceb501e3c2038016c89f8423b8bcaa | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu Aug 28 09:53:44 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Thu Aug 28 09:53:44 2014 +0300 |
tree | 199da46e4095d3afc5f254184aa288798c92edcb | |
parent | 47c21c65c04b433fc4de98c6db385bd609975866 [diff] [blame] |
Fix CI_Security::get_random_bytes() length validation
diff --git a/system/core/Security.php b/system/core/Security.php index bc224e7..782d3e8 100755 --- a/system/core/Security.php +++ b/system/core/Security.php
@@ -559,7 +559,7 @@ */ public function get_random_bytes($length) { - if (empty($length) OR ! ctype_digit($length)) + if (empty($length) OR ! ctype_digit((string) $length)) { return FALSE; }