mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Remove unnecessary path.normalize()
calls
`path.join()` already normalizes.
This commit is contained in:
parent
84c1d74f8b
commit
f868788417
6 changed files with 9 additions and 10 deletions
|
@ -719,7 +719,7 @@ exports.reloadSettings = () => {
|
|||
}
|
||||
|
||||
// informative variable, just for the log messages
|
||||
let skinPath = path.normalize(path.join(skinBasePath, exports.skinName));
|
||||
let skinPath = path.join(skinBasePath, exports.skinName);
|
||||
|
||||
// what if someone sets skinName == ".." or "."? We catch him!
|
||||
if (absolutePaths.isSubdir(skinBasePath, skinPath) === false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue