Changeset

4289:1e68721c02f2

Merge 0.7->0.8
author Matthew Wild <mwild1@gmail.com>
date Thu, 02 Jun 2011 15:28:12 +0100
parents 4285:c806a599224a (current diff) 4288:8fde6b6b4919 (diff)
children 4290:aaa06e68a9e4 4293:419354c47c28
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: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