diff mod_http_muc_log/mod_http_muc_log.lua @ 3560:0ebb7112c102

mod_http_muc_log: Allow trailing slash after date For compat with links generated by mod_muc_log_http
author Kim Alvefur <zash@zash.se>
date Tue, 09 Apr 2019 18:05:28 +0200
parents 887ce59cf396
children ea63dc0cc824
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Sat Apr 06 18:53:19 2019 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Apr 09 18:05:28 2019 +0200
@@ -231,7 +231,7 @@
 
 	-- FIXME In the year, 105105, if MUC is still alive,
 	-- if Prosody can survive... Enjoy this Y10k bug
-	local room, date = path:match("^(.-)/(%d%d%d%d%-%d%d%-%d%d)$");
+	local room, date = path:match("^(.-)/(%d%d%d%d%-%d%d%-%d%d)/?$");
 	room = nodeprep(room);
 	if not room then
 		return years_page(event, path);