minor update: app.js: fix found file path in log on windows

This commit is contained in:
zefie
2021-07-25 10:12:36 -04:00
parent a5806e8581
commit cef29832e3

View File

@@ -215,6 +215,7 @@ function filterSSID(obj) {
function makeSafePath(base, target) {
target.replace(/[\|\&\;\$\%\@\"\<\>\+\,\\]/g, "");
if (path.sep != "/") target = target.replace(/\//g, path.sep);
var targetPath = path.posix.normalize(target)
return base + path.sep + targetPath;
}