diff options
author | justdave%syndicomm.com <> | 2001-11-18 07:18:07 +0100 |
---|---|---|
committer | justdave%syndicomm.com <> | 2001-11-18 07:18:07 +0100 |
commit | 4a6aa8a0eff81fc226e27ae02938da246d2f7a10 (patch) | |
tree | 465211be4fef0dbbcc703090eb5b663514eb838e /doeditparams.cgi | |
parent | aa5aead25142d188aa3aad9004fefa84ab496533 (diff) | |
download | bugzilla-4a6aa8a0eff81fc226e27ae02938da246d2f7a10.tar.gz bugzilla-4a6aa8a0eff81fc226e27ae02938da246d2f7a10.tar.xz |
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
Diffstat (limited to 'doeditparams.cgi')
-rwxr-xr-x | doeditparams.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doeditparams.cgi b/doeditparams.cgi index 0ecd4be76..a67175e91 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -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}) { |