Comparison

plugins/mod_http_errors.lua @ 7494:f82356adcd71

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 13 Jul 2016 10:25:52 +0200
parent 7492:9a749cf8c1ba
child 8363:e2460edc2a2f
comparison
equal deleted inserted replaced
7488:cdabf8199903 7494:f82356adcd71
41 <body> 41 <body>
42 <h1>$title</h1> 42 <h1>$title</h1>
43 <p>$message</p> 43 <p>$message</p>
44 <p>$extra</p> 44 <p>$extra</p>
45 </body> 45 </body>
46 </html>]]; 46 </html>
47 ]];
47 html = html:gsub("%s%s+", ""); 48 html = html:gsub("%s%s+", "");
48 49
49 local entities = { 50 local entities = {
50 ["<"] = "&lt;", [">"] = "&gt;", ["&"] = "&amp;", 51 ["<"] = "&lt;", [">"] = "&gt;", ["&"] = "&amp;",
51 ["'"] = "&apos;", ["\""] = "&quot;", ["\n"] = "<br/>", 52 ["'"] = "&apos;", ["\""] = "&quot;", ["\n"] = "<br/>",