commit | 3ad3503ba56e1a3824ce19a3ce213eaaad7ffe8f | [log] [tgz] |
---|---|---|
author | Chris Muench <me@chrismuench.com> | Sun Oct 16 23:03:55 2011 -0400 |
committer | Chris Muench <me@chrismuench.com> | Sun Oct 16 23:03:55 2011 -0400 |
tree | 260d211d66cd49a430b77658f59474e5d58f6548 | |
parent | 9593349964e9ba557b14e8cda9c16b16498a55a5 [diff] |
Check for string value before doing str_replace. (Issue #439)
diff --git a/system/libraries/Session.php b/system/libraries/Session.php index dd951c3..867314b 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php
@@ -749,7 +749,10 @@ */ function _unescape_slashes(&$val, $key) { - $val= str_replace('{{slash}}', '\\', $val); + if (is_string($val)) + { + $val= str_replace('{{slash}}', '\\', $val); + } } // --------------------------------------------------------------------