summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorendico%mozilla.org <>2000-06-02 08:09:14 +0200
committerendico%mozilla.org <>2000-06-02 08:09:14 +0200
commit5c2876537ca23508a64d95e29183e968aa6c3581 (patch)
tree1c25b5bdc56262626795daf59014c04c2126b257 /CGI.pl
parent80d6161acf54b6d54a7bf92d694055935cf93c9d (diff)
downloadbugzilla-5c2876537ca23508a64d95e29183e968aa6c3581.tar.gz
bugzilla-5c2876537ca23508a64d95e29183e968aa6c3581.tar.xz
added comment to value_quote referencing bugs with quoting linebreaks
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/CGI.pl b/CGI.pl
index 2e782b6da..085b31cf3 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -251,6 +251,9 @@ sub value_quote {
$var =~ s/</\&lt;/g;
$var =~ s/>/\&gt;/g;
$var =~ s/"/\&quot;/g;
+ # 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/\&#013;/g;
return $var;