minor update: app.js: fix found file path in log on windows
This commit is contained in:
@@ -215,6 +215,7 @@ function filterSSID(obj) {
|
|||||||
|
|
||||||
function makeSafePath(base, target) {
|
function makeSafePath(base, target) {
|
||||||
target.replace(/[\|\&\;\$\%\@\"\<\>\+\,\\]/g, "");
|
target.replace(/[\|\&\;\$\%\@\"\<\>\+\,\\]/g, "");
|
||||||
|
if (path.sep != "/") target = target.replace(/\//g, path.sep);
|
||||||
var targetPath = path.posix.normalize(target)
|
var targetPath = path.posix.normalize(target)
|
||||||
return base + path.sep + targetPath;
|
return base + path.sep + targetPath;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user