comparison mod_pastebin/mod_pastebin.lua @ 71:3c18c2d03bc2

mod_pastebin: Fix finding of XHTML content.
author Paul Aurich <paul@darkrain42.org>
date Fri, 30 Oct 2009 21:11:42 -0700
parents ea59a8d98b03
children 3c7189e26848
comparison
equal deleted inserted replaced
70:d3afb1403aa7 71:3c18c2d03bc2
44 44
45 local body, bodyindex, htmlindex; 45 local body, bodyindex, htmlindex;
46 for k,v in ipairs(stanza) do 46 for k,v in ipairs(stanza) do
47 if v.name == "body" then 47 if v.name == "body" then
48 body, bodyindex = v, k; 48 body, bodyindex = v, k;
49 elseif v.name == "html" and v.attr.xmlns == xmlns_xhtml then 49 elseif v.name == "html" and v.attr.xmlns == xmlns_xhtmlim then
50 htmlindex = k; 50 htmlindex = k;
51 end 51 end
52 end 52 end
53 53
54 if not body then return; end 54 if not body then return; end