Escape URLs in text/plain res.redirect response
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Escape the URL printed by res.redirect using URL encoding. This prevents some browsers (primarily old versions of IE) from attempting to sniff the Content-Type and evaluate it as HTML, which causes a cross-site scripting vulnerability.
authored by Greg Methvin · committed by Greg Methvin · parent c70db96 · Browse files · 2 files+18 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+18 added−1 removed
- tests:+17 added−0 removed
- other:+1 added−1 removed