diff options
Diffstat (limited to 'util/xmppstream.lua')
-rw-r--r-- | util/xmppstream.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua index 66f2e534..69e7690d 100644 --- a/util/xmppstream.lua +++ b/util/xmppstream.lua @@ -159,9 +159,12 @@ function new_sax_handlers(session, stream_callbacks) stanza, chardata = nil, {}; end end - - local function restricted_handler() + + local function restricted_handler(parser) cb_error(session, "parse-error", "restricted-xml", "Restricted XML, see RFC 6120 section 11.1."); + if not parser:stop() then + error("Failed to abort parsing"); + end end if lxp_supports_doctype then |