diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-08 14:25:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-08 14:25:09 +0000 |
commit | 225f37a376d9a556695ac8c84816cf538a3a5448 (patch) | |
tree | d811219bdc6d6a4850983285e7ca138e0be1f95f /src/configreader.cpp | |
parent | 9095800a1750caf7e5d6951090e8f6c2a2facbc4 (diff) |
Check in tag names too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9864 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index bd4b4347d..4861b7fb3 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1544,7 +1544,13 @@ bool ServerConfig::ParseLine(ConfigDataHash &target, const std::string &filename { if (*c != '<') { - tagname += *c; + if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || *c == '_') + tagname += *c; + else + { + errorstream << "Invalid character in value name: '" << *c << "' in value '" << tagname << "' in filename: " << filename << ":" << linenumber << std::endl; + return false; + } } } else |