mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Missing bit of the previous patch.
This commit is contained in:
parent
046635075b
commit
bf020f87e1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user