diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-10-01 14:17:39 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-10-01 14:17:39 +0200 |
commit | 59c26339c0dbf262116c9f1c562bc07034a9ed74 (patch) | |
tree | e3e19e9edaff702db1ec6ce26d244cc59404eb6e /system/libraries/Session.php | |
parent | 85f95463c3a46ca53c5588b6f4e0b67e281f8db1 (diff) |
Fixed a bug in the Session library where user agent matching would fail on user agents ending with a space.
Diffstat (limited to 'system/libraries/Session.php')
-rw-r--r-- | system/libraries/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php index 819c3f5ef..9dd277073 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -220,7 +220,7 @@ class CI_Session { }
// Does the User Agent Match?
- if ($this->CI->config->item('sess_match_useragent') == TRUE AND $session['user_agent'] != substr($this->CI->input->user_agent(), 0, 50))
+ if ($this->CI->config->item('sess_match_useragent') == TRUE AND trim($session['user_agent']) != trim(substr($this->CI->input->user_agent(), 0, 50)))
{
$this->sess_destroy();
return FALSE;
|