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
commitb4af560c9711221a4da3da41c8cef1d302b63beb (patch)
tree83eb891856f5211bd1a40d2a4810875bbe3291e5 /plugins/mod_http_errors.lua
parent6518e5f41b9ebf9a4be4e9e8a4872fad7ff88f3f (diff)
downloadprosody-b4af560c9711221a4da3da41c8cef1d302b63beb.tar.gz
prosody-b4af560c9711221a4da3da41c8cef1d302b63beb.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>
]];