diff options
author | lpsolit%gmail.com <> | 2007-10-08 05:56:23 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-10-08 05:56:23 +0200 |
commit | bbd35c12bf6b886a7768c4c6d43d8dca21f549aa (patch) | |
tree | ddfc224d04529d9a832e30940275f4e49e1c5120 /Bugzilla/Util.pm | |
parent | 49d12c8c90c1bc6c72f0b3d1324a23002e79b6d3 (diff) | |
download | bugzilla-bbd35c12bf6b886a7768c4c6d43d8dca21f549aa.tar.gz bugzilla-bbd35c12bf6b886a7768c4c6d43d8dca21f549aa.tar.xz |
Bug 398838: Remove the obsolete Util::value_quote() routine - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r-- | Bugzilla/Util.pm | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index e15edc6b5..5c68a9092 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -33,7 +33,7 @@ use strict; use base qw(Exporter); @Bugzilla::Util::EXPORT = qw(is_tainted trick_taint detaint_natural detaint_signed - html_quote url_quote value_quote xml_quote + html_quote url_quote xml_quote css_class_quote html_light_quote url_decode i_am_cgi get_netaddr correct_urlbase lsearch @@ -195,22 +195,6 @@ sub css_class_quote { return $toencode; } -sub value_quote { - my ($var) = (@_); - $var =~ s/\&/\&/g; - $var =~ s/</\</g; - $var =~ s/>/\>/g; - $var =~ s/\"/\"/g; - # See bug http://bugzilla.mozilla.org/show_bug.cgi?id=4928 for - # explanation of why Bugzilla does this linebreak substitution. - # This caused form submission problems in mozilla (bug 22983, 32000). - $var =~ s/\r\n/\
/g; - $var =~ s/\n\r/\
/g; - $var =~ s/\r/\
/g; - $var =~ s/\n/\
/g; - return $var; -} - sub xml_quote { my ($var) = (@_); $var =~ s/\&/\&/g; @@ -539,7 +523,6 @@ Bugzilla::Util - Generic utility functions for bugzilla # Functions for quoting html_quote($var); url_quote($var); - value_quote($var); xml_quote($var); # Functions for decoding @@ -652,11 +635,6 @@ Quotes characters so that they may be included as part of a url. Quotes characters so that they may be used as CSS class names. Spaces are replaced by underscores. -=item C<value_quote($val)> - -As well as escaping html like C<html_quote>, this routine converts newlines -into 
, suitable for use in html attributes. - =item C<xml_quote($val)> This is similar to C<html_quote>, except that ' is escaped to '. This |