Skip to content

Commit

Permalink
Port fix for misconfigured servers from the CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge authored Aug 26, 2022
1 parent 86f6cbb commit 5e29f3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AbstractWebApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,9 @@ protected function detectRequestUri()
}
}

// Extra cleanup to remove invalid chars in the URL to prevent injections through the Host header
$uri = str_replace(array("'", '"', '<', '>'), array('%27', '%22', '%3C', '%3E'), $uri);

return \trim($uri);
}

Expand Down

0 comments on commit 5e29f3d

Please sign in to comment.