Skip to content

CGI:cookie subroutine does not pass max-age to CGI::Cookie->new #247

@jjkola

Description

@jjkola

While using cookie() to create a cookie I noticed that max-age parameter was not passed correctly to CGI::Cookie. When reviewing CGI.pm code I noticed the following code in cookie subroutine (line 2796):

push(@param,'-max_age'=>$max_age) if $max_age;

That should be:

push(@param,'-max-age'=>$max_age) if $max_age;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions