diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-29 19:50:02 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-29 19:50:02 +0200 |
commit | f21583b6ab8b870aaa3f8be48426d4e0f6a7ae48 (patch) | |
tree | d70984b1fbb9dc6d3576d0b0e57781fff1146c20 /Bugzilla/Util.pm | |
parent | b7fb96faa4f99f335695c11fbeed9f3a8bc78aa9 (diff) | |
download | bugzilla-f21583b6ab8b870aaa3f8be48426d4e0f6a7ae48.tar.gz bugzilla-f21583b6ab8b870aaa3f8be48426d4e0f6a7ae48.tar.xz |
Bug 554819: Quicksearch should be using Text::ParseWords instead of custom code in splitString
Also fixes QS with accented characters (bug 730207)
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r-- | Bugzilla/Util.pm | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index bf8569839..91d40a4f2 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -12,7 +12,7 @@ use strict; use base qw(Exporter); @Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed html_quote url_quote xml_quote - css_class_quote html_light_quote url_decode + css_class_quote html_light_quote i_am_cgi correct_urlbase remote_ip do_ssl_redirect_if_required use_attachbase diff_arrays on_main_db say @@ -220,14 +220,6 @@ sub xml_quote { return $var; } -sub url_decode { - my ($todecode) = (@_); - $todecode =~ tr/+/ /; # pluses become spaces - $todecode =~ s/%([0-9a-fA-F]{2})/pack("c",hex($1))/ge; - utf8::decode($todecode) if Bugzilla->params->{'utf8'}; - return $todecode; -} - sub i_am_cgi { # I use SERVER_SOFTWARE because it's required to be # defined for all requests in the CGI spec. @@ -751,9 +743,6 @@ Bugzilla::Util - Generic utility functions for bugzilla xml_quote($var); email_filter($var); - # Functions for decoding - $rv = url_decode($var); - # Functions that tell you about your environment my $is_cgi = i_am_cgi(); my $urlbase = correct_urlbase(); @@ -866,10 +855,6 @@ This is similar to C<html_quote>, except that ' is escaped to '. This is kept separate from html_quote partly for compatibility with previous code (for ') and partly for future handling of non-ASCII characters. -=item C<url_decode($val)> - -Converts the %xx encoding from the given URL back to its original form. - =item C<email_filter> Removes the hostname from email addresses in the string, if the user |