summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2013-11-26 17:25:37 +0000
committerMichael Meeks <michael.meeks@collabora.com>2013-11-26 17:33:44 +0000
commit30a8fbbf1b7bdc849d88445a28e86e03e5dc2166 (patch)
tree5b41926f1844910c14bb744269b7cc964ee21adf /sax
parentd7280af9740819971f46a855108334b84778b47d (diff)
fastparser: special case xmlns more sensibly.
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 4c75e0cf6d8a..1bfb15e6a439 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -949,6 +949,10 @@ void FastSaxParser::callbackStartElement( const XML_Char* pwName, const XML_Char
{
assert(awAttributes[i+1]);
+ if( awAttributes[i][0] != 'x' ||
+ strncmp( awAttributes[i], "xmlns") != 0 )
+ continue;
+
splitName( awAttributes[i], pPrefix, nPrefixLen, pName, nNameLen );
if( nPrefixLen )
{