Prevent configuration leakage in Windows
This commit is contained in:
parent
8a0c164232
commit
e873bc03ee
2 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
@ -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",
|
||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "DorianTech OrangeCircle SCGI client for SVR.JS",
|
||||
"version": "1.0.1"
|
||||
"version": "1.0.2"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue