update XMLStorage: correctly handle dots and colons in attribute names

svn path=/trunk/; revision=35590
This commit is contained in:
Martin Fuchs 2008-08-24 06:58:19 +00:00
parent 86ab49ef00
commit 5ed0e9015c

View file

@ -666,9 +666,10 @@ const char* get_xmlsym_end_utf8(const char* p)
for(; *p; ++p) {
char c = *p;
// NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
if (c == '\xC3') // UTF-8 escape character
++p; //TODO only continue on umlaut characters
else if (!isalnum(c) && c!='_' && c!='-')
else if (!isalnum(c) && c!='.' && c!='-' && c!='_' && c!=':')
break;
}