diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2013-11-26 17:25:37 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2013-11-26 17:33:44 +0000 |
commit | 30a8fbbf1b7bdc849d88445a28e86e03e5dc2166 (patch) | |
tree | 5b41926f1844910c14bb744269b7cc964ee21adf /sax | |
parent | d7280af9740819971f46a855108334b84778b47d (diff) |
fastparser: special case xmlns more sensibly.
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 4 |
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 ) { |