diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-06-15 18:47:30 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-06-15 18:47:30 +0200 |
commit | 9b2a72e6ff35251f4af96b136848b9594e11bff7 (patch) | |
tree | ed85eed538e042b9b171f075e6f200064a512276 /phpBB/includes/auth/auth_db.php | |
parent | 34c89b595072cf346ce3194038f26df6535320c7 (diff) | |
parent | 1e8c257bd4965c8f9e1c35688ba9fe0ad1044efb (diff) | |
download | forums-9b2a72e6ff35251f4af96b136848b9594e11bff7.tar forums-9b2a72e6ff35251f4af96b136848b9594e11bff7.tar.gz forums-9b2a72e6ff35251f4af96b136848b9594e11bff7.tar.bz2 forums-9b2a72e6ff35251f4af96b136848b9594e11bff7.tar.xz forums-9b2a72e6ff35251f4af96b136848b9594e11bff7.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[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 f715a11971..d17ec6ba86 100644 --- a/phpBB/includes/auth/auth_db.php +++ b/phpBB/includes/auth/auth_db.php @@ -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, |