Software /
code /
prosody
Comparison
util/xmppstream.lua @ 4306:a101c59772e7
Merge 0.8->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Jun 2011 01:54:06 +0100 |
parent | 4290:aaa06e68a9e4 |
parent | 4305:e3ffa91517cc |
child | 4425:6f5ed0f4a3e6 |
comparison
equal
deleted
inserted
replaced
4302:bbb0bf0a09f5 | 4306:a101c59772e7 |
---|---|
168 end | 168 end |
169 end | 169 end |
170 | 170 |
171 local function restricted_handler(parser) | 171 local function restricted_handler(parser) |
172 cb_error(session, "parse-error", "restricted-xml", "Restricted XML, see RFC 6120 section 11.1."); | 172 cb_error(session, "parse-error", "restricted-xml", "Restricted XML, see RFC 6120 section 11.1."); |
173 if not parser:stop() then | 173 if not parser.stop or not parser:stop() then |
174 error("Failed to abort parsing"); | 174 error("Failed to abort parsing"); |
175 end | 175 end |
176 end | 176 end |
177 | 177 |
178 if lxp_supports_doctype then | 178 if lxp_supports_doctype then |