[ros-diffs] [martinf] 35590: update XMLStorage: correctly handle dots and colons in attribute names

martinf at svn.reactos.org martinf at svn.reactos.org
Sun Aug 24 08:58:19 CEST 2008


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/utility/xmlstorage.cpp?rev=35590&r1=35589&r2=35590&view=diff
==============================================================================
--- 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;
 	}
 



More information about the Ros-diffs mailing list