mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
19d99d13a0
commit
d5ca583326
1 changed files with 1 additions and 1 deletions
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue