aboutsummaryrefslogtreecommitdiffstats
path: root/src/configparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 173c81338..182451dcb 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -169,6 +169,17 @@ struct Parser
nextword(name);
int spc = next();
+ if (spc == '/' && name.empty())
+ {
+ // XML close tag like "</tag>"; ignore.
+ nextword(name);
+ spc = next();
+ if (spc != '>')
+ throw CoreException("Invalid characters in XML closing tag");
+ return;
+ }
+
+ // Except for <tag> and <tag/>, the name must be followed by a space
if (spc == '>' || spc == '/')
unget(spc);
else if (!isspace(spc))