projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Upgrade to CGI.pm 3.01
[p5sagit/p5-mst-13.2.git]
/
lib
/
CGI
/
Cookie.pm
diff --git
a/lib/CGI/Cookie.pm
b/lib/CGI/Cookie.pm
index
7060fb4
..
27a93c5
100644
(file)
--- a/
lib/CGI/Cookie.pm
+++ b/
lib/CGI/Cookie.pm
@@
-220,7
+220,7
@@
sub expires {
sub max_age {
my $self = shift;
my $expires = shift;
- $self->{'max-age'} = CGI::Util::expire_calc($expires)-time if defined $expires;
+ $self->{'max-age'} = CGI::Util::expire_calc($expires)-time() if defined $expires;
return $self->{'max-age'};
}