mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 16:57:36 +00:00
The rest of the fix for bug 163573: Escapes HTML in form data displayed to the user to secure Bonsai against cross-site scripting attacks.
This commit is contained in:
parent
4e4d3c4f89
commit
a4f22d93b5
@ -96,7 +96,8 @@ else {
|
||||
if( $bMultiRepos ){
|
||||
print "<OPTION VALUE='allrepositories'>All Files in all Repositories\n";
|
||||
}
|
||||
print "<OPTION SELECTED VALUE='$::FORM{module}'>$::FORM{module}\n";
|
||||
my $escaped_module = html_quote($::FORM{module});
|
||||
print "<OPTION SELECTED VALUE='$escaped_module'>$escaped_module\n";
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -58,7 +58,8 @@ sub BreakBig {
|
||||
|
||||
|
||||
if (exists($::FORM{'person'})) {
|
||||
$title = $head = "Checkins for $::FORM{'person'}";
|
||||
my $escaped_person = html_quote($::FORM{'person'});
|
||||
$title = $head = "Checkins for $escaped_person";
|
||||
|
||||
foreach $checkin (@::CheckInList) {
|
||||
$info = eval("\\\%$checkin");
|
||||
|
Loading…
x
Reference in New Issue
Block a user