Software /
code /
prosody
Changeset
4290:aaa06e68a9e4
Merge 0.8->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 02 Jun 2011 15:28:41 +0100 |
parents | 4286:1bceebe2b117 (current diff) 4289:1e68721c02f2 (diff) |
children | 4291:122f142da281 |
files | util/xmppstream.lua |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/xmppstream.lua Thu Jun 02 02:31:18 2011 +0100 +++ b/util/xmppstream.lua Thu Jun 02 15:28:41 2011 +0100 @@ -167,9 +167,12 @@ stack = {}; 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