]> granicus.if.org Git - php/commitdiff
Missing bit of the previous patch.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 8 Jul 2005 16:17:04 +0000 (16:17 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 8 Jul 2005 16:17:04 +0000 (16:17 +0000)
ext/standard/head.c

index c9bc00ef4b8facbcbe56860eb7e3536569c015d1..d565ec1ac188858d8ad702d390d506dc32a1ee46 100644 (file)
@@ -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);
                }