We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112d070 commit 414033dCopy full SHA for 414033d
server/helpers/page.js
@@ -35,6 +35,8 @@ module.exports = {
35
rawPath = rawPath.replace(unsafeCharsRegex, '')
36
if (rawPath === '') { rawPath = 'home' }
37
38
+ rawPath = rawPath.replaceAll('\\', '').replaceAll('//', '').replaceAll(/\.\.+/ig, '')
39
+
40
// Extract Info
41
let pathParts = _.filter(_.split(rawPath, '/'), p => {
42
p = _.trim(p)
0 commit comments