diff options
author | Tom Smeding <tom@tomsmeding.com> | 2021-08-15 23:13:23 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2021-08-15 23:13:35 +0200 |
commit | e0fbaa6b16d3617365ad1cca15da2caeb356fad7 (patch) | |
tree | 03aba9caa9556f15372eacf814ecd2eec86c089d /modules/blog | |
parent | aadd3715f9ced40b0bf25729a9968d9c42a19cb2 (diff) |
blog: Remove /. in path
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/blog.js | 1 |
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); |