diff options
Diffstat (limited to 'CGI.pl')
-rw-r--r-- | CGI.pl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |