diff options
Diffstat (limited to 'src')
-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 { |