Software /
code /
prosody
Diff
util/xmppstream.lua @ 4289:1e68721c02f2
Merge 0.7->0.8
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 02 Jun 2011 15:28:12 +0100 |
parent | 4288:8fde6b6b4919 |
parent | 4282:f5a46b73432b |
child | 4290:aaa06e68a9e4 |
child | 4305:e3ffa91517cc |
line wrap: on
line diff
--- a/util/xmppstream.lua Thu Jun 02 02:30:26 2011 +0100 +++ b/util/xmppstream.lua Thu Jun 02 15:28:12 2011 +0100 @@ -159,9 +159,12 @@ 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