commit 62f74db6f62ab36bd278e25aa489e0cb20e0023f from: Alexander Barton date: Fri Nov 10 10:06:14 2006 UTC Fixed validation of server names containing digits. [from HEAD] commit - cf4ae7799165c567c9fb7aa6a1e7f4b95e161aad commit + 62f74db6f62ab36bd278e25aa489e0cb20e0023f blob - d9d6271cad43bf8bd9a7832941dedcb8e5c29656 blob + 9eecd9b16d25319762d64809b48a33b1e3c1e495 --- ChangeLog +++ 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 $ blob - c025dc2a6a78dcf607baa70b03b4f4e34075a914 blob + 559861f7bbb170a06727b25fb9a0a3d0d17f16b3 --- src/ngircd/conf.c +++ src/ngircd/conf.c @@ -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 @@ -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;