summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
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/\
/g;
+ $var =~ s/\r\n/\
/g;
+ $var =~ s/\n\r/\
/g;
$var =~ s/\r/\
/g;
+ $var =~ s/\n/\
/g;
return $var;
}