diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2011-06-15 18:47:27 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2011-06-15 18:47:27 +0200 |
| commit | 1e8c257bd4965c8f9e1c35688ba9fe0ad1044efb (patch) | |
| tree | 5d7c308c3a23771c3850f0b2ee4627f9bea8183e /phpBB/includes/auth/auth_db.php | |
| parent | bf3bac87720190d09795825316c87b6deefa103f (diff) | |
| parent | d2eebd76822013f3bd32871d5667c4510eeba72b (diff) | |
| download | forums-1e8c257bd4965c8f9e1c35688ba9fe0ad1044efb.tar forums-1e8c257bd4965c8f9e1c35688ba9fe0ad1044efb.tar.gz forums-1e8c257bd4965c8f9e1c35688ba9fe0ad1044efb.tar.bz2 forums-1e8c257bd4965c8f9e1c35688ba9fe0ad1044efb.tar.xz forums-1e8c257bd4965c8f9e1c35688ba9fe0ad1044efb.zip | |
Merge branch 'prep-release-3.0.9' into develop-olympus
* prep-release-3.0.9:
[ticket/10220] Limit user agent value length for storage in login attempt table
Diffstat (limited to 'phpBB/includes/auth/auth_db.php')
| -rw-r--r-- | phpBB/includes/auth/auth_db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/auth/auth_db.php b/phpBB/includes/auth/auth_db.php index fe3ea30b2a..018d5cce70 100644 --- a/phpBB/includes/auth/auth_db.php +++ b/phpBB/includes/auth/auth_db.php @@ -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, |
