Trim user agent for RememberMe sessions because MySQL use a varchar(255) column

This commit is contained in:
Jan Pechek 2021-04-10 03:28:58 +02:00 committed by GitHub
parent 09424e067c
commit bfdea753a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class RememberMeSessionModel extends Base
->insert(array(
'user_id' => $user_id,
'ip' => $ip,
'user_agent' => $user_agent,
'user_agent' => substr($user_agent, 0, 255),
'token' => $token,
'sequence' => $sequence,
'expiration' => $expiration,