diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-08 14:37:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-08 14:37:47 +0000 |
commit | f393f58b5cf34dc17350c4ba9a22707751ef9f7a (patch) | |
tree | 11b1994257cf8d15722ba72d4866cac55cf17492 /src/configreader.cpp | |
parent | 225f37a376d9a556695ac8c84816cf538a3a5448 (diff) |
Allow 0-9 in tag/key names, and special check for > and \n
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9865 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 4861b7fb3..56eefa9ed 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1544,7 +1544,7 @@ bool ServerConfig::ParseLine(ConfigDataHash &target, const std::string &filename { if (*c != '<') { - if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || *c == '_') + if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || (*c >= '0' && *c <= '9') || *c == '_') tagname += *c; else { @@ -1572,7 +1572,7 @@ bool ServerConfig::ParseLine(ConfigDataHash &target, const std::string &filename { if (*c != ' ') { - if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || *c == '_') + if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || (*c >= '0' && *c <= '9') || *c == '_' || *c == '\n' || *c == '>') current_key += *c; else { |