From: Ilia Alshanetsky Date: Fri, 8 Jul 2005 16:17:04 +0000 (+0000) Subject: Missing bit of the previous patch. X-Git-Tag: php-5.1.0b3~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf020f87e10649af3c51a468f2044af0528e0048;p=php Missing bit of the previous patch. --- diff --git a/ext/standard/head.c b/ext/standard/head.c index c9bc00ef4b..d565ec1ac1 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -110,7 +110,7 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : ""); if (expires > 0) { strcat(cookie, "; expires="); - dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0); + dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, expires, 0); strcat(cookie, dt); efree(dt); }