From bf020f87e10649af3c51a468f2044af0528e0048 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 8 Jul 2005 16:17:04 +0000 Subject: [PATCH] Missing bit of the previous patch. --- ext/standard/head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/head.c b/ext/standard/head.c index c9bc00ef4b8..d565ec1ac18 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); }