diff --git a/config.json b/config.json index 0ff4979..61a8b1a 100644 --- a/config.json +++ b/config.json @@ -1,9 +1,9 @@ { "users": [], - "port": 5555, + "port": 80, "pubport": 80, "page404": "404.html", - "timestamp": 1694020816055, + "timestamp": 1694024561052, "blacklist": [], "nonStandardCodes": [], "enableCompression": true, @@ -102,4 +102,4 @@ "errorPages": [], "useWebRootServerSideScript": true, "exposeModsInErrorPages": true -} \ No newline at end of file +} diff --git a/svr.js b/svr.js index 90b95a6..fc453c6 100644 --- a/svr.js +++ b/svr.js @@ -4215,7 +4215,9 @@ if (!cluster.isPrimary) { } var sHref = sanitizeURL(href); - if (sHref != href.replace(/\/\.(?=\/|$)/g, "/").replace(/\/+/g, "/")) { + var preparedReqUrl2 = uobject.pathname + (uobject.search ? uobject.search : "") + (uobject.hash ? uobject.hash : ""); + + if (req.url != preparedReqUrl2 || sHref != href.replace(/\/\.(?=\/|$)/g, "/").replace(/\/+/g, "/")) { callServerError(403); serverconsole.errmessage("Content blocked."); return;