Skip to content
Browse files

Teach read_cookie() to return all cookie when an empty cookie name is…

… provided
  • Loading branch information...
1 parent 78543c5 commit 4e79a632516d139ca343f30767af82e576d717a0 @machack666 machack666 committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Vend/Util.pm
View
1 lib/Vend/Util.pm
@@ -2006,6 +2006,7 @@ sub read_cookie {
my ($lookfor, $string) = @_;
$string = $CGI::cookie
unless defined $string;
+ return cookies_hash($string) unless defined $lookfor && length($lookfor);
return undef unless $string =~ /(?:^|;)\s*\Q$lookfor\E=([^\s;]+)/i;
return unescape_chars($1);
}

0 comments on commit 4e79a63

Please sign in to comment.
Something went wrong with that request. Please try again.