Skip to content

Commit

Permalink
Fix address untainting error.
Browse files Browse the repository at this point in the history
Reported by Alberto Simões on irc.perl.org and diagnosted with copious
help from Chris Williams.  Thanks, guys!
  • Loading branch information
rcaputo committed May 15, 2012
1 parent 963f8fe commit 202dea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/POE/Component/Resolver.pm
Expand Up @@ -503,7 +503,7 @@ sub unpack_addr {
my ($self, $address_rec) = @_;

# [rt.cpan.org 76314] Untaint the address.
my ($input_addr) = ($address_rec->{addr} =~ /\A(.*)\z/);
my ($input_addr) = ($address_rec->{addr} =~ /\A(.*)\z/s);

my ($error, $address, $port) = (
(getnameinfo $input_addr, NI_NUMERICHOST | NI_NUMERICSERV)[0,1]
Expand Down

0 comments on commit 202dea1

Please sign in to comment.