diff options
author | tianhe1986 <w1s2j3229@163.com> | 2016-08-22 13:04:27 +0200 |
---|---|---|
committer | tianhe1986 <w1s2j3229@163.com> | 2016-08-22 13:04:27 +0200 |
commit | aed367157d396c8320e278d74227664e0af43d51 (patch) | |
tree | a43e48cc5fe15d4d0049941d2badeff7fc2490a1 | |
parent | 121ff9c43650ec383015fe3719d6a9c5c980081f (diff) |
Standard: filtering "resource" type in hex2bin()
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
-rw-r--r-- | system/core/compat/standard.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/compat/standard.php b/system/core/compat/standard.php index c839c9bc9..6b7caa485 100644 --- a/system/core/compat/standard.php +++ b/system/core/compat/standard.php @@ -153,7 +153,7 @@ if ( ! function_exists('hex2bin')) */ function hex2bin($data) { - if (in_array($type = gettype($data), array('array', 'double', 'object'), TRUE)) + if (in_array($type = gettype($data), array('array', 'double', 'object', 'resource'), TRUE)) { if ($type === 'object' && method_exists($data, '__toString')) { |