Author: martinf
Date: Sun Aug 24 01:58:19 2008
New Revision: 35590
URL:
http://svn.reactos.org/svn/reactos?rev=35590&view=rev
Log:
update XMLStorage: correctly handle dots and colons in attribute names
Modified:
trunk/reactos/base/shell/explorer/utility/xmlstorage.cpp
Modified: trunk/reactos/base/shell/explorer/utility/xmlstorage.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/utilit…
==============================================================================
--- trunk/reactos/base/shell/explorer/utility/xmlstorage.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/utility/xmlstorage.cpp [iso-8859-1] Sun Aug 24
01:58:19 2008
@@ -666,9 +666,10 @@
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;
}