Software /
code /
prosody
Changeset
4288:8fde6b6b4919
Merge 0.6->0.7
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 02 Jun 2011 15:23:58 +0100 |
parents | 4281:5a0144a032d8 (current diff) 4287:ee6a18f10a8d (diff) |
children | 4289:1e68721c02f2 |
files | core/xmlhandlers.lua |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/xmlhandlers.lua Thu Jun 02 00:25:44 2011 +0100 +++ b/core/xmlhandlers.lua Thu Jun 02 15:23:58 2011 +0100 @@ -150,8 +150,11 @@ 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