]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fixed validation of server names containing digits. [from HEAD]
authorAlexander Barton <alex@barton.de>
Fri, 10 Nov 2006 10:06:14 +0000 (10:06 +0000)
committerAlexander Barton <alex@barton.de>
Fri, 10 Nov 2006 10:06:14 +0000 (10:06 +0000)
ChangeLog
src/ngircd/conf.c

index d9d6271cad43bf8bd9a7832941dedcb8e5c29656..9eecd9b16d25319762d64809b48a33b1e3c1e495 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
 
 ngIRCd 0.10.x
 
+  - Fixed validation of server names containing digits.
   - Update info text of local server after re-reading configuration.
 
 ngIRCd 0.10.0 (2006-10-01)
@@ -665,4 +666,4 @@ ngIRCd 0.0.1, 31.12.2001
 
 
 -- 
-$Id: ChangeLog,v 1.302.2.5 2006/10/03 11:01:05 alex Exp $
+$Id: ChangeLog,v 1.302.2.6 2006/11/10 10:06:14 alex Exp $
index c025dc2a6a78dcf607baa70b03b4f4e34075a914..559861f7bbb170a06727b25fb9a0a3d0d17f16b3 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conf.c,v 1.92.2.1 2006/10/03 11:01:06 alex Exp $";
+static char UNUSED id[] = "$Id: conf.c,v 1.92.2.2 2006/11/10 10:06:14 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -968,7 +968,7 @@ Validate_Config(bool Configtest, bool Rehash)
        do {
                if (*ptr >= 'a' && *ptr <= 'z') continue;
                if (*ptr >= 'A' && *ptr <= 'Z') continue;
-               if (*ptr >= '1' && *ptr <= '0') continue;
+               if (*ptr >= '0' && *ptr <= '9') continue;
                if (ptr > Conf_ServerName) {
                        if (*ptr == '.' || *ptr == '-')
                                continue;