update XMLStorage: correctly handle dots and colons in attribute names
authorMartin Fuchs <martin-fuchs@gmx.net>
Sun, 24 Aug 2008 06:58:19 +0000 (06:58 +0000)
committerMartin Fuchs <martin-fuchs@gmx.net>
Sun, 24 Aug 2008 06:58:19 +0000 (06:58 +0000)
svn path=/trunk/; revision=35590

reactos/base/shell/explorer/utility/xmlstorage.cpp

index 3dba1ba..b1a18ad 100644 (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;
        }