[exim-dev] [Bug 1026] dnslists doesn't allow underscores

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Git Commit
Datum:  
To: exim-dev
Alte Treads: [exim-dev] [Bug 1026] New: dnslists doesn't allow underscores
Betreff: [exim-dev] [Bug 1026] dnslists doesn't allow underscores
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1026

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???





--- Comment #1 from Git Commit <git@???> 2011-01-30 20:17:05 ---
Git commit:
http://git.exim.org/exim.git/commitdiff/09dcaba9252681dbacff8c19b34e983c659e44b9

commit 09dcaba9252681dbacff8c19b34e983c659e44b9
Author:     Nigel Metheringham <nigel@???>
AuthorDate: Sun Jan 30 19:45:13 2011 +0000
Commit:     Nigel Metheringham <nigel@???>
CommitDate: Sun Jan 30 19:45:13 2011 +0000


    Allow underscore in dnslist lookups


    Fixes bug 1026
    Patch from Graeme Fowler
---
 doc/doc-txt/ChangeLog |    3 +++
 src/src/verify.c      |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 6d12f63..6e1bd45 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -29,6 +29,9 @@ PP/03 Build issue: lookups-Makefile now exports LC_ALL=C
 NM/02 Fix wide character breakage in the rfc2047 coding
       Fixes bug 1064. Patch from Andrey N. Oktyabrski


+NM/03 Allow underscore in dnslist lookups
+      Fixes bug 1026. Patch from Graeme Fowler
+



Exim version 4.74
diff --git a/src/src/verify.c b/src/src/verify.c
index 1ead302..f653b6e 100644
--- a/src/src/verify.c
+++ b/src/src/verify.c
@@ -3038,7 +3038,7 @@ while ((domain = string_nextinlist(&list, &sep, buffer,
sizeof(buffer))) != NULL

   for (s = domain; *s != 0; s++)
     {
-    if (!isalnum(*s) && *s != '-' && *s != '.')
+    if (!isalnum(*s) && *s != '-' && *s != '.' && *s != '_')
       {
       log_write(0, LOG_MAIN, "dnslists domain \"%s\" contains "
         "strange characters - is this right?", domain);
@@ -3050,7 +3050,7 @@ while ((domain = string_nextinlist(&list, &sep, buffer,
sizeof(buffer))) != NULL


   if (domain_txt != domain) for (s = domain_txt; *s != 0; s++)
     {
-    if (!isalnum(*s) && *s != '-' && *s != '.')
+    if (!isalnum(*s) && *s != '-' && *s != '.' && *s != '_')
       {
       log_write(0, LOG_MAIN, "dnslists domain \"%s\" contains "
         "strange characters - is this right?", domain_txt);



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email