Ignore:
Timestamp:
Nov 22, 2009, 5:11:24 PM (14 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager]

  • Bug 1259 fixed - PHP notice on user addition by admin in user_list page
  • Bug 1257 fixed - If email exclusion list begins with a CR-LF, an informative warning message is displayed (I was unable to delete automatically this CR-LF).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/include/functions_UserAdvManager.inc.php

    r4316 r4340  
    609609  if (isset($username))
    610610  {
     611    $usercase = strtolower($username);
    611612    $query = "
    612613SELECT ".$conf['user_fields']['username']."
    613614  FROM ".USERS_TABLE."
    614 WHERE LOWER(".$conf['user_fields']['username'].") = '".strtolower($username)."'
    615 ;";
    616     list($username) = mysql_fetch_row(pwg_query($query));
    617 
    618     return isset($username) ? stripslashes($username) : '';
     615WHERE LOWER(".stripcslashes($conf['user_fields']['username']).") = '".$usercase."'
     616;";
     617    list($usercase) = mysql_fetch_row(pwg_query($query));
     618
     619    return isset($username) ? stripslashes($usercase) : '';
    619620  }
    620621}
     
    653654        {
    654655                $ncsemail = strtolower($email);
    655                 $conf_nbc_MailExclusion = preg_split('/,/',$conf_nbc_UserAdvManager[13]);
     656                $conf_nbc_MailExclusion = preg_split("/[\s,]+/",$conf_nbc_UserAdvManager[13]);
    656657                for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    657658                {
Note: See TracChangeset for help on using the changeset viewer.