From: Derick Rethans Date: Sun, 7 Dec 2003 14:29:43 +0000 (+0000) Subject: - Fixed bug #26548 (Malformed HTTP dates in headers). X-Git-Tag: php-5.0.0b3RC1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71f9227cc5dc3907406742c3f09c744104b883cf;p=php - Fixed bug #26548 (Malformed HTTP dates in headers). --- diff --git a/NEWS b/NEWS index d77deb18d4..7e33498d2a 100644 --- a/NEWS +++ b/NEWS @@ -38,6 +38,7 @@ PHP NEWS (Moriyoshi) - Fixed bug #26156 (REPLACE_ZVAL_VALUE works on uninit stack-based zvals). (Moriyoshi) +- Fixed bug #26548 (Malformed HTTP dates in headers). (Derick) 30 Oct 2003, PHP 5 Beta 2 - Lots and lots of changes in the Zend Engine 2 since beta 1: diff --git a/ext/session/session.c b/ext/session/session.c index bbb27f6b71..50636f042a 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -817,7 +817,7 @@ static void strcpy_gmt(char *ubuf, time_t *when) php_gmtime_r(when, &tm); - n = sprintf(buf, "%s, %d %s %d %02d:%02d:%02d GMT", /* SAFE */ + n = sprintf(buf, "%s, %02d %s %d %02d:%02d:%02d GMT", /* SAFE */ week_days[tm.tm_wday], tm.tm_mday, month_names[tm.tm_mon], tm.tm_year + 1900, tm.tm_hour, tm.tm_min,