summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-08-28 08:53:44 +0200
committerAndrey Andreev <narf@devilix.net>2014-08-28 08:53:44 +0200
commitefe33a2187ceb501e3c2038016c89f8423b8bcaa (patch)
tree199da46e4095d3afc5f254184aa288798c92edcb /system
parent47c21c65c04b433fc4de98c6db385bd609975866 (diff)
Fix CI_Security::get_random_bytes() length validation
Diffstat (limited to 'system')
-rwxr-xr-xsystem/core/Security.php2
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;
}