summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--ext/session/session.c2
2 files changed, 2 insertions, 1 deletions
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,