25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Disable all entity expansions (thanks to Alexey Shchepin)(EJAB-1451)

This commit is contained in:
Badlop 2011-05-24 13:12:13 +02:00
parent 3785b3e951
commit 133b8d42a3

View File

@ -169,6 +169,8 @@ static ErlDrvData expat_erl_start(ErlDrvPort port, char *buff)
d->parser, (XML_StartNamespaceDeclHandler) erlXML_StartNamespaceDeclHandler);
XML_SetReturnNSTriplet(d->parser, 1);
XML_SetDefaultHandler(d->parser, NULL);
return (ErlDrvData)d;
}