Ignore:
Timestamp:
Jun 4, 2009, 9:14:57 PM (15 years ago)
Author:
Eric
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/main.inc.php

    r3385 r3393  
    22/*
    33Plugin Name: NBC UserAdvManager
    4 Version: 2.10.9
     4Version: 2.10.9a
    55Description: Permet de renforcer les possibilités de gestion des utilisateurs - Enforce users management
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216
     
    3434                        Bug fixed - Audit on forbidden characters in username didn't work
    3535                        Adding of email provider exclusion (like *@hotmail.com) - Warning ! -> Known bug : This feature doesn't work on user profile page. So, already registered users can change their email address to a forbiden one.
     36
     37-- 2.10.9a : Email provider exclusion is no longer case sensitive
    3638
    3739*/
     
    188190      /* This work with a code copy of ValidateEmailProvider() function */
    189191          if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['email']))
     192          $ncsemail = strtolower($_POST['email']);
    190193                {
    191194                  $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
    192195                  for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    193196                    {
    194                           if (ereg($conf_nbc_MailExclusion[$i], $_POST['email']))
     197                          if (ereg($conf_nbc_MailExclusion[$i], $ncsemail))
    195198                            {
    196199                          $lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
     
    232235      /* This work with a code copy of ValidateEmailProvider() function */
    233236                if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address']))
     237                $ncsemail = strtolower($_POST['mail_address']);
    234238                  {
    235239                    $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
    236240                        for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    237241                          {
    238                             if (ereg($conf_nbc_MailExclusion[$i], $_POST['mail_address']))
     242                            if (ereg($conf_nbc_MailExclusion[$i], $ncsemail))
    239243                                  {
    240244                                    $lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
     
    298302        /* This don't work on user's profile page - Why ?? */
    299303                if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address']))
     304                $ncsemail = strtolower($_POST['mail_address']);
    300305                  {
    301306                    $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
    302307                        for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    303308                          {
    304                             if (ereg($conf_nbc_MailExclusion[$i], $_POST['mail_address']))
     309                            if (ereg($conf_nbc_MailExclusion[$i], $ncsemail))
    305310                                  {
    306311                                    $mail_error = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
Note: See TracChangeset for help on using the changeset viewer.