Fixed bug 4928 -- wasn't encoding multi-line value fields properly,
which busted modern browsers (like, Mozilla itself).
This commit is contained in:
Родитель
2d931f3b53
Коммит
8e36a0e574
|
@ -186,19 +186,11 @@ sub value_quote {
|
|||
$var =~ s/</\</g;
|
||||
$var =~ s/>/\>/g;
|
||||
$var =~ s/"/\"/g;
|
||||
$var =~ s/\n/\
/g;
|
||||
$var =~ s/\r/\
/g;
|
||||
return $var;
|
||||
}
|
||||
|
||||
sub value_unquote {
|
||||
my ($var) = (@_);
|
||||
$var =~ s/\"/\"/g;
|
||||
$var =~ s/\</</g;
|
||||
$var =~ s/\>/>/g;
|
||||
$var =~ s/\&/\&/g;
|
||||
return $var;
|
||||
}
|
||||
|
||||
|
||||
sub navigation_header {
|
||||
if (defined $::COOKIE{"BUGLIST"} && $::COOKIE{"BUGLIST"} ne "") {
|
||||
my @bugs = split(/:/, $::COOKIE{"BUGLIST"});
|
||||
|
|
Загрузка…
Ссылка в новой задаче