summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_parser.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2022-03-10 23:23:47 +0100
committerlouiz’ <louiz@louiz.org>2022-03-10 23:23:47 +0100
commit0061298dd0945f7f67e7fa340c6649b179c804d5 (patch)
tree23f178ae4f3d988c0c712c79e3d7156fcc5a33e0 /src/xmpp/xmpp_parser.cpp
parent18b6006e30c26a2fb6196e3b16420de74a654a73 (diff)
downloadbiboumi-0061298dd0945f7f67e7fa340c6649b179c804d5.tar.gz
biboumi-0061298dd0945f7f67e7fa340c6649b179c804d5.tar.bz2
biboumi-0061298dd0945f7f67e7fa340c6649b179c804d5.tar.xz
biboumi-0061298dd0945f7f67e7fa340c6649b179c804d5.zip
Do not use ':' as a namespace separator with expatHEADmaster
Instead use \1, and build our own nodes by explicitely separating the namespace and the node name.
Diffstat (limited to 'src/xmpp/xmpp_parser.cpp')
-rw-r--r--src/xmpp/xmpp_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_parser.cpp b/src/xmpp/xmpp_parser.cpp
index 781fe4c..1f25fa6 100644
--- a/src/xmpp/xmpp_parser.cpp
+++ b/src/xmpp/xmpp_parser.cpp
@@ -38,7 +38,7 @@ XmppParser::XmppParser():
void XmppParser::init_xml_parser()
{
// Create the expat parser
- this->parser = XML_ParserCreateNS("UTF-8", ':');
+ this->parser = XML_ParserCreateNS("UTF-8", '\1');
XML_SetUserData(this->parser, static_cast<void*>(this));
// Install Expat handlers