diff options
author | Andrey Andreev <narf@devilix.net> | 2014-08-28 08:53:44 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-08-28 08:53:44 +0200 |
commit | efe33a2187ceb501e3c2038016c89f8423b8bcaa (patch) | |
tree | 199da46e4095d3afc5f254184aa288798c92edcb /system | |
parent | 47c21c65c04b433fc4de98c6db385bd609975866 (diff) |
Fix CI_Security::get_random_bytes() length validation
Diffstat (limited to 'system')
-rwxr-xr-x | system/core/Security.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |