From 5ed0e9015cb1d3006f520a8a24717e5b46f31266 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 24 Aug 2008 06:58:19 +0000 Subject: [PATCH] update XMLStorage: correctly handle dots and colons in attribute names svn path=/trunk/; revision=35590 --- reactos/base/shell/explorer/utility/xmlstorage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/base/shell/explorer/utility/xmlstorage.cpp b/reactos/base/shell/explorer/utility/xmlstorage.cpp index 3dba1ba0fbf..b1a18ad6c63 100644 --- a/reactos/base/shell/explorer/utility/xmlstorage.cpp +++ b/reactos/base/shell/explorer/utility/xmlstorage.cpp @@ -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; }