summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-08-15 23:13:23 +0200
committerTom Smeding <tom@tomsmeding.com>2021-08-15 23:13:35 +0200
commite0fbaa6b16d3617365ad1cca15da2caeb356fad7 (patch)
tree03aba9caa9556f15372eacf814ecd2eec86c089d
parentaadd3715f9ced40b0bf25729a9968d9c42a19cb2 (diff)
blog: Remove /. in path
-rw-r--r--modules/blog/blog.js1
1 files changed, 1 insertions, 0 deletions
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);