summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-04-27 11:31:45 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-04-27 11:31:45 +0200
commit8a6d16c62602d249d2e66356faf5e2f4b8470c9e (patch)
treec8b5d83a5810988b47ef7777babfa96a7672e8b7
parentced2c9ab41450cb632c042730604111ec2a24e1f (diff)
parent03edf58ea6c2a1b74f746a7b27b7305a0d33d3d6 (diff)
Merge pull request #1298 from zivyuan/patch-1
Cookie $index should start with a prefix.
-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);
}