From e0fbaa6b16d3617365ad1cca15da2caeb356fad7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 15 Aug 2021 23:13:23 +0200 Subject: blog: Remove /. in path --- modules/blog/blog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/blog/blog.js b/modules/blog/blog.js index c6a4bb6..748bcde 100644 --- a/modules/blog/blog.js +++ b/modules/blog/blog.js @@ -130,6 +130,7 @@ module.exports = (app, io, _moddir) => { const path = req.path .slice(6) .replace(/\/[\/]*/g, "/") + .replace(/\/\.+/g, "/") .replace(/\.html$/, ""); const fromCache = templateCache.get(path); -- cgit v1.2.3-70-g09d2