mirror of
https://github.com/osmarks/ngircd.git
synced 2025-05-16 14:14:09 +00:00
Fixed validation of server names containing digits. [from HEAD]
This commit is contained in:
parent
cf4ae77991
commit
62f74db6f6
@ -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 $
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user