diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2013-11-26 17:25:37 +0000 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-04 11:41:33 -0500 |
commit | b9c38039f44861801ce3221f6383517a5c342f6e (patch) | |
tree | b5a4583c11c1eda351f572b7bfc0e9b9fa78ff3e /sax | |
parent | 16a38eb854d2303e9a723651c3ab66897efe03d0 (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 ) { |