fix: admin security UI
This commit is contained in:
1 parent
1f9e5b3fd0
commit
83f7c2867d
2 files changed
+3
-2
No files matched your search
@@ -39,7 +39,7 @@ module.exports = function (req, res, next) {
|
||||
// -> Prevent Open Redirect from user provided URL
|
||||
if (WIKI.config.security.securityOpenRedirect) {
|
||||
// Strips out all repeating / character in the provided URL
|
||||
req.url = req.url.replace(/(\/)(?=\/*\1)/g, "")
|
||||
req.url = req.url.replace(/(\/)(?=\/*\1)/g, '')
|
||||
}
|
||||
|
||||
return next()
|
||||
|
||||
Reference in new issue
Block a user