If Configure::read('Session.checkAgent') has not explicitly set false, 'HTTP_USER_AGENT' will be checked

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5907 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-10-27 19:06:19 +00:00
parent 19d99d13a0
commit d5ca583326

View file

@ -119,7 +119,7 @@ class CakeSession extends Object {
uses('model' . DS . 'connection_manager');
}
if (Configure::read('Session.checkAgent') === true) {
if (Configure::read('Session.checkAgent') === true || Configure::read('Session.checkAgent') === null) {
if (env('HTTP_USER_AGENT') != null) {
$this->_userAgent = md5(env('HTTP_USER_AGENT') . Configure::read('Security.salt'));
}