Added tobi's fix from Minnegard.
This commit is contained in:
parent
23425bc608
commit
9111aefcdd
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ HopObject.prototype.map = function(values) {
|
|||
|
||||
HopObject.prototype.onRequest = function() {
|
||||
// Checking if we are on the correct host to prevent at least some XSS issues
|
||||
if (false && req.action !== "notfound" && req.action !== "error" &&
|
||||
if (req.action !== "notfound" && req.action !== "error" &&
|
||||
!this.href().toLowerCase().startsWith(req.servletRequest.scheme +
|
||||
"://" + req.servletRequest.serverName.toLowerCase())) {
|
||||
res.redirect(this.href(req.action === "main" ? String.EMPTY : req.action));
|
||||
|
|
Loading…
Add table
Reference in a new issue