summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-04 13:44:34 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-04 13:44:34 +0200
commit9ba661b02c492e89028e5c67b7edbfc0efefc9f1 (patch)
treed3c3250b2c19b6d009c3fd3fe580b7021ed18a23 /system/core/Input.php
parent142b618fb7419972288a8f7b58e7e2509b3bf225 (diff)
Revert/optimize some changes from ed944a3c70a0bad158cd5a6ca5ce1f2e717aff5d
Diffstat (limited to 'system/core/Input.php')
-rwxr-xr-xsystem/core/Input.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 284b15697..73f46ba6a 100755
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -267,18 +267,22 @@ class CI_Input {
{
$prefix = config_item('cookie_prefix');
}
- if ($domain === '' && config_item('cookie_domain') !== '')
+
+ if ($domain == '' && config_item('cookie_domain') != '')
{
$domain = config_item('cookie_domain');
}
+
if ($path === '/' && config_item('cookie_path') !== '/')
{
$path = config_item('cookie_path');
}
+
if ($secure === FALSE && config_item('cookie_secure') !== FALSE)
{
$secure = config_item('cookie_secure');
}
+
if ($httponly === FALSE && config_item('cookie_httponly') !== FALSE)
{
$httponly = config_item('cookie_httponly');
@@ -324,7 +328,7 @@ class CI_Input {
return $this->ip_address;
}
- if (config_item('proxy_ips') !== '' && $this->server('HTTP_X_FORWARDED_FOR') && $this->server('REMOTE_ADDR'))
+ if (config_item('proxy_ips') != '' && $this->server('HTTP_X_FORWARDED_FOR') && $this->server('REMOTE_ADDR'))
{
$proxies = preg_split('/[\s,]/', config_item('proxy_ips'), -1, PREG_SPLIT_NO_EMPTY);
$proxies = is_array($proxies) ? $proxies : array($proxies);