Prevent configuration leakage in Windows

This commit is contained in:
Dorian Niemiec 2023-08-14 19:39:59 +02:00
parent 8a0c164232
commit e873bc03ee
2 changed files with 2 additions and 2 deletions

View file

@ -260,7 +260,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
callServerError(500, "OrangeCircle/" + version, ex);
}
}
} else if (href == "/orangecircle-config.json" && path.normalize(__dirname + "/../../..") == process.cwd()) {
} else if ((href == "/orangecircle-config.json" || (os.platform() == "win32" && href.toLowerCase() == "/orangecircle-config.json")) && path.normalize(__dirname + "/../../..") == process.cwd()) {
if (!callServerError) {
res.writeHead(200, "OK", {
"Content-Type": "application/json",

View file

@ -1,4 +1,4 @@
{
"name": "DorianTech OrangeCircle SCGI client for SVR.JS",
"version": "1.0.1"
"version": "1.0.2"
}