Diff

plugins/mod_http_errors.lua @ 11155:8d692a8a8f48

mod_http_errors: Remove 'extra' element when empty
author Kim Alvefur <zash@zash.se>
date Mon, 12 Oct 2020 18:27:42 +0200
parent 11154:dd81a318a794
child 11388:60a61c509d87
line wrap: on
line diff
--- a/plugins/mod_http_errors.lua	Mon Oct 12 18:16:18 2020 +0200
+++ b/plugins/mod_http_errors.lua	Mon Oct 12 18:27:42 2020 +0200
@@ -57,7 +57,7 @@
 <body>
 <h1>{title}</h1>
 <p>{message}</p>
-<p class="extra">{extra?}</p>
+{extra&<p class="extra">{extra?}</p>}
 </body>
 </html>
 ]];