From 2bb9bbb803f3c87f66d3d0e2e9dfa41a22340bf7 Mon Sep 17 00:00:00 2001 From: Sriram Natarajan Date: Wed, 23 Jun 2010 19:06:33 +0000 Subject: [PATCH] - Fixed bug #52162 (custom request header variables with numbers are removed) --- NEWS | 2 ++ sapi/nsapi/nsapi.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index bb52a3d888..2296a80186 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ PHP NEWS ?? ??? 2010, PHP 5.3.3 RC2 - Implemented FR #51295 (SQLite3::busyTimeout not existing). (Mark) - Fixed the mail.log ini setting when no filename was given. (Johannes) +- Fixed bug #52162 (custom request header variables with numbers are removed). + (Sriram Natarajan) - Fixed bug #52115 (mysqli_result::fetch_all returns null, not an empty array). (Andrey) diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 8d8363c01c..d7571c89dc 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -687,7 +687,7 @@ static void sapi_nsapi_register_server_variables(zval *track_vars_array TSRMLS_D if (value) { for(p = value + pos; *p; p++) { *p = toupper(*p); - if (*p < 'A' || *p > 'Z') { + if (!isalnum(*p)) { *p = '_'; } } -- 2.50.1