Skip to content

Commit

Permalink
Comment the last change
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Apr 8, 2024
1 parent de92b93 commit 4d2420c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CGI/Info.pm
Original file line number Diff line number Diff line change
Expand Up @@ -711,11 +711,11 @@ sub params {

next unless($key);

$key =~ s/%00//g;
$key =~ s/%00//g; # Strip NUL byte poison
$key =~ s/%([a-fA-F\d][a-fA-F\d])/pack("C", hex($1))/eg;
$key =~ tr/+/ /;
if(defined($value)) {
$value =~ s/%00//g;
$value =~ s/%00//g; # Strip NUL byte poison
$value =~ s/%([a-fA-F\d][a-fA-F\d])/pack("C", hex($1))/eg;
$value =~ tr/+/ /;
} else {
Expand Down

0 comments on commit 4d2420c

Please sign in to comment.