diff options
author | lpsolit%gmail.com <> | 2005-07-21 06:30:58 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-21 06:30:58 +0200 |
commit | 69ec0a28fd6b83f7001027dbc60ffa6b8e6b27bb (patch) | |
tree | 06b27ec88a90374827aa9d774e865f3917fef177 /CGI.pl | |
parent | b8a33eb39a2fb1e994f84dc013440375b9f45dcc (diff) | |
download | bugzilla-69ec0a28fd6b83f7001027dbc60ffa6b8e6b27bb.tar.gz bugzilla-69ec0a28fd6b83f7001027dbc60ffa6b8e6b27bb.tar.xz |
Bug 301458: Move url_decode out of CGI.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'CGI.pl')
-rw-r--r-- | CGI.pl | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -55,14 +55,6 @@ use vars qw($template $vars); # Implementations of several of the below were blatently stolen from CGI.pm, # by Lincoln D. Stein. -# Get rid of all the %xx encoding and the like from the given URL. -sub url_decode { - my ($todecode) = (@_); - $todecode =~ tr/+/ /; # pluses become spaces - $todecode =~ s/%([0-9a-fA-F]{2})/pack("c",hex($1))/ge; - return $todecode; -} - # check and see if a given field exists, is non-empty, and is set to a # legal value. assume a browser bug and abort appropriately if not. # if $legalsRef is not passed, just check to make sure the value exists and |