plugins/mod_http_errors.lua
changeset 7495 9a749cf8c1ba
parent 5776 bd0ff8ae98a8
child 8366 e2460edc2a2f
equal deleted inserted replaced
7494:491975f5d383 7495:9a749cf8c1ba
    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/>",