Ignore:
Timestamp:
Sep 25, 2009, 10:52:54 PM (15 years ago)
Author:
Eric
Message:

[[NBC_UserAdvManager] Fix for bug 1172

Improving display of excluded email providers. We can now use CR/LF in configuration field. Comma (,) seperator is still mandatory.
Using CR/LF in excluded email providers list implies the field width is no more usefull with 80 col. It has been reduced to 30 col.

File:
1 edited

Legend:

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

    r3917 r3918  
    207207                        {
    208208                        $ncsemail = strtolower($_POST['email']);
    209                         $conf_nbc_MailExclusion = preg_split('/,/',$conf_nbc_UserAdvManager[13]);
     209                        $conf_nbc_MailExclusion = preg_split("/[\s,]+/",$conf_nbc_UserAdvManager[13]);
    210210                        for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    211211                    {
     
    253253                  {
    254254                        $ncsemail = strtolower($_POST['mail_address']);
    255                     $conf_nbc_MailExclusion = preg_split('/,/',$conf_nbc_UserAdvManager[13]);
     255                    $conf_nbc_MailExclusion = preg_split("/[\s,]+/",$conf_nbc_UserAdvManager[13]);
    256256                                for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    257257                          {
     
    315315                                {
    316316                                        $ncsemail = strtolower($_POST['mail_address']);
    317                                 $conf_nbc_MailExclusion = preg_split('/,/',$conf_nbc_UserAdvManager[13]);
     317                                                $conf_nbc_MailExclusion = preg_split("/[\s,]+/",$conf_nbc_UserAdvManager[13]);
    318318                                                for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    319319                                        {
Note: See TracChangeset for help on using the changeset viewer.