Changeset 368


Ignore:
Timestamp:
May 7, 2010 12:34:31 AM (14 years ago)
Author:
quinn
Message:

Setting usernames in whitelists to lowercase to ensure match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r362 r368  
    251251    function setParam($params)
    252252    {
     253        if (isset($params['match_remote_ip_exempt_usernames'])) {
     254            $params['match_remote_ip_exempt_usernames'] = array_map('strtolower', $params['match_remote_ip_exempt_usernames']);
     255        }
     256        if (isset($params['login_abuse_exempt_usernames'])) {
     257            $params['login_abuse_exempt_usernames'] = array_map('strtolower', $params['login_abuse_exempt_usernames']);
     258        }
    253259        if (isset($params) && is_array($params)) {
    254260            // Merge new parameters with old overriding only those passed.
Note: See TracChangeset for help on using the changeset viewer.