diff options
Diffstat (limited to 'lib/CGI/Cookie.pm')
-rw-r--r-- | lib/CGI/Cookie.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CGI/Cookie.pm b/lib/CGI/Cookie.pm index 0b915f0aad..789aa25d1a 100644 --- a/lib/CGI/Cookie.pm +++ b/lib/CGI/Cookie.pm @@ -159,7 +159,7 @@ sub as_string { push(@constant_values,"secure") if $secure = $self->secure; my($key) = escape($self->name); - my($cookie) = join("=",$key,join("&",map escape($_),$self->value)); + my($cookie) = join("=",($key||''),join("&",map escape($_||''),$self->value)); return join("; ",$cookie,@constant_values); } |