Fix for bug 92500: line-feeds were not being properly converted when submitting…

Fix for bug 92500: line-feeds were not being properly converted when submitting parameter changes with some Mac browsers. Patch by Gervase Markham <gerv@mozilla.org> r= ddk, justdave
parent aa5aead2
......@@ -51,7 +51,7 @@ foreach my $i (@::param_list) {
if (exists $::FORM{"reset-$i"}) {
$::FORM{$i} = $::param_default{$i};
}
$::FORM{$i} =~ s/\r\n/\n/g; # Get rid of windows-style line endings.
$::FORM{$i} =~ s/\r\n?/\n/g; # Get rid of windows/mac-style line endings.
$::FORM{$i} =~ s/^\n$//; # assume single linefeed is an empty string
if ($::FORM{$i} ne Param($i)) {
if (defined $::param_checker{$i}) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment