Merge 0.7->0.8
authorMatthew Wild <mwild1@gmail.com>
Thu, 02 Jun 2011 15:28:12 +0100
changeset 4289 1e68721c02f2
parent 4285 c806a599224a (current diff)
parent 4288 8fde6b6b4919 (diff)
child 4290 aaa06e68a9e4
child 4293 419354c47c28
Merge 0.7->0.8
util/xmppstream.lua
--- 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