1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-01 20:19:13 +02:00

Merge remote-tracking branch 'naderman/ticket/10220' into prep-release-3.0.9

* naderman/ticket/10220:
  [ticket/10220] Limit user agent value length for storage in login attempt table
This commit is contained in:
Andreas Fischer 2011-06-15 18:47:26 +02:00
commit d2eebd7682

View File

@ -90,7 +90,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,