diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-31 16:34:49 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-31 16:34:49 (GMT) |
commit | 7d03474e499e9d357c2d69e2333ba5dd0dc03fd4 (patch) | |
tree | 2b3423326a9412cfffd74dd1a128eb19d1ccff53 /Swiften | |
parent | 1dc80e3835c85a47291d91fd82c0f2f2617aa591 (diff) | |
download | swift-7d03474e499e9d357c2d69e2333ba5dd0dc03fd4.zip swift-7d03474e499e9d357c2d69e2333ba5dd0dc03fd4.tar.bz2 |
ExpatParser: Fix invalid handleEndElement()
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Parser/ExpatParser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Parser/ExpatParser.cpp b/Swiften/Parser/ExpatParser.cpp index 6d23c93..6f7ff86 100644 --- a/Swiften/Parser/ExpatParser.cpp +++ b/Swiften/Parser/ExpatParser.cpp @@ -32,6 +32,10 @@ static void handleStartElement(void* client, const XML_Char* name, const XML_Cha static void handleEndElement(void* client, const XML_Char* name) { std::pair<String,String> nsTagPair = String(name).getSplittedAtFirst(NAMESPACE_SEPARATOR); + if (nsTagPair.second == "") { + nsTagPair.second = nsTagPair.first; + nsTagPair.first = ""; + } static_cast<XMLParserClient*>(client)->handleEndElement(nsTagPair.second, nsTagPair.first); } |