summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authordave%intrec.com <>2001-01-17 06:09:33 +0100
committerdave%intrec.com <>2001-01-17 06:09:33 +0100
commit9e3652ab9c1add7c21f818f6d6d9cf26b4b78ba3 (patch)
tree0d3147196e5705dc8ff4717e2a58f53cec51c2de /CGI.pl
parentbe610ad922aae00d50bd297fb0dc76a7566ec31f (diff)
downloadbugzilla-9e3652ab9c1add7c21f818f6d6d9cf26b4b78ba3.tar.gz
bugzilla-9e3652ab9c1add7c21f818f6d6d9cf26b4b78ba3.tar.xz
Fix for bug 32000 (and refixing bug 4928): extra newlines in comments made
with NS4-Mac
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/CGI.pl b/CGI.pl
index cde06826c..72fd135bf 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -262,8 +262,10 @@ sub value_quote {
# See bug http://bugzilla.mozilla.org/show_bug.cgi?id=4928 for
# explanaion of why bugzilla does this linebreak substitution.
# This caused form submission problems in mozilla (bug 22983, 32000).
- $var =~ s/\n/\&#010;/g;
+ $var =~ s/\r\n/\&#013;/g;
+ $var =~ s/\n\r/\&#013;/g;
$var =~ s/\r/\&#013;/g;
+ $var =~ s/\n/\&#013;/g;
return $var;
}