aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_errors.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-12 18:27:42 +0200
committerKim Alvefur <zash@zash.se>2020-10-12 18:27:42 +0200
commitfdb82bc5938bcd60b7578ed112b40166c237cbc9 (patch)
tree83eb891856f5211bd1a40d2a4810875bbe3291e5 /plugins/mod_http_errors.lua
parent631a549f2b72b8c278658ef834b49ad785e7ea59 (diff)
downloadprosody-fdb82bc5938bcd60b7578ed112b40166c237cbc9.tar.gz
prosody-fdb82bc5938bcd60b7578ed112b40166c237cbc9.zip
mod_http_errors: Remove 'extra' element when empty
Diffstat (limited to 'plugins/mod_http_errors.lua')
-rw-r--r--plugins/mod_http_errors.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua
index 727b2516..a2138d88 100644
--- a/plugins/mod_http_errors.lua
+++ b/plugins/mod_http_errors.lua
@@ -57,7 +57,7 @@ p.extra {
<body>
<h1>{title}</h1>
<p>{message}</p>
-<p class="extra">{extra?}</p>
+{extra&<p class="extra">{extra?}</p>}
</body>
</html>
]];