summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
authorziv <ziv.yuan@gmail.com>2012-04-27 09:09:04 +0200
committerziv <ziv.yuan@gmail.com>2012-04-27 09:09:04 +0200
commit03edf58ea6c2a1b74f746a7b27b7305a0d33d3d6 (patch)
treed090d693edfb9c682a9b32fdf9a38e10ed3c5286 /system/core/Input.php
parent61318a2c53c13a314f483fcbbfd64c6e01f5242c (diff)
Update system/core/Input.php
Fix a cookie get back problem. Cookie $index should start with a prefix.
Diffstat (limited to 'system/core/Input.php')
-rwxr-xr-xsystem/core/Input.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index fc2a550bc..7594a2e45 100755
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -226,6 +226,7 @@ class CI_Input {
*/
public function cookie($index = '', $xss_clean = FALSE)
{
+ $index = config_item('cookie_prefix').$index;
return $this->_fetch_from_array($_COOKIE, $index, $xss_clean);
}