X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=b34ceecdb94aa40c022ca50f7fe1c5c861704fcf;hp=84c75e9d3a27b1ffe45da3878560016d8f2d475d;hb=ade50bdb79a80b82d1334aa987fe81c16740c0f6;hpb=57ecbde4875bd0a04549c999224be9e7c50957bc diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 84c75e9..b34ceec 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -128,6 +128,11 @@ sub finalize_cookies { -httponly => $val->{httponly} || 0, ) ); + if (!defined $cookie) { + $c->log->warn("undef passed in '$name' cookie value - not setting cookie") + if $c->debug; + next; + } push @cookies, $cookie->as_string; }