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/Template.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/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index c22502806..d8e23c939 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -144,8 +144,6 @@ sub quoteUrls { # Do this by escaping \0 to \1\0, and replacing matches with \0\0$count\0\0 # \0 is used because it's unlikely to occur in the text, so the cost of # doing this should be very small - # Also, \0 won't appear in the value_quote'd bug title, so we don't have - # to worry about bogus substitutions from there # escape the 2nd escape char we're using my $chr1 = chr(1); @@ -265,7 +263,7 @@ sub get_attachment_link { $className = "bz_obsolete"; } # Prevent code injection in the title. - $title = value_quote($title); + $title = html_quote(clean_text($title)); $link_text =~ s/ \[details\]$//; my $linkval = "attachment.cgi?id=$attachid"; @@ -321,7 +319,7 @@ sub get_bug_link { $title .= " - $bug_desc"; } # Prevent code injection in the title. - $title = value_quote($title); + $title = html_quote(clean_text($title)); my $linkval = "show_bug.cgi?id=$bug_num"; if (defined $comment_num) { |