mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10220] Limit user agent value length for storage in login attempt table
This commit is contained in:
commit
9b2a72e6ff
@ -91,7 +91,7 @@ function login_db($username, $password, $ip = '', $browser = '', $forwarded_for
|
||||
|
||||
$attempt_data = array(
|
||||
'attempt_ip' => $ip,
|
||||
'attempt_browser' => $browser,
|
||||
'attempt_browser' => trim(substr($browser, 0, 149)),
|
||||
'attempt_forwarded_for' => $forwarded_for,
|
||||
'attempt_time' => time(),
|
||||
'user_id' => ($row) ? (int) $row['user_id'] : 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user