Fixed bug with URLs containing "jsgi-bin" that don't refer to "jsgi-bin" directory in the web root
This commit is contained in:
parent
f019e845b7
commit
789fa15575
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -233,7 +233,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
executeJSGI("." + a, req, res, dh, jsgiRequestObject);
|
||||
}
|
||||
|
||||
if (href.match(new RegExp("/jsgi-bin(?:$|[?#/])",os.platform() == "win32" ? "i" : ""))) {
|
||||
if (href.match(new RegExp("^/jsgi-bin(?:$|[?#/])",os.platform() == "win32" ? "i" : ""))) {
|
||||
fs.stat("." + decodeURIComponent(href), function (err, stats) {
|
||||
if (!err) {
|
||||
if (!stats.isFile()) {
|
||||
|
|
Loading…
Reference in a new issue