mod_http_muc_log: Allow trailing slash after date
authorKim Alvefur <zash@zash.se>
Tue, 09 Apr 2019 18:05:28 +0200
changeset 3564 0ebb7112c102
parent 3563 d56cb74a0db8
child 3565 deb5ece56c49
mod_http_muc_log: Allow trailing slash after date For compat with links generated by mod_muc_log_http
mod_http_muc_log/mod_http_muc_log.lua
--- 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);