forked from svrjs/svrjs
Remove one obsolete process.cwd() == __dirname check
This commit is contained in:
parent
53560a7bcd
commit
f475aa8651
1 changed files with 4 additions and 4 deletions
2
svr.js
2
svr.js
|
@ -4290,7 +4290,7 @@ if (!cluster.isPrimary) {
|
|||
callServerError(403);
|
||||
serverconsole.errmessage("Access to log files is denied.");
|
||||
return;
|
||||
} else if (isForbiddenPath(decodedHref, "svrjs") && !isProxy && !exposeServerVersion && process.cwd() == __dirname) {
|
||||
} else if (isForbiddenPath(decodedHref, "svrjs") && !isProxy && !exposeServerVersion) {
|
||||
callServerError(403);
|
||||
serverconsole.errmessage("Access to SVR.JS script is denied.");
|
||||
return;
|
||||
|
|
Reference in a new issue