diff options
author | Sriram Natarajan <srinatar@php.net> | 2010-06-23 19:06:33 +0000 |
---|---|---|
committer | Sriram Natarajan <srinatar@php.net> | 2010-06-23 19:06:33 +0000 |
commit | 9ce4941ec94fe8796b20e7389a65e1fb003c6785 (patch) | |
tree | 692946f4e578466cd8d5a61a387dfcb078084634 | |
parent | 1b59a2cb3c7ef403fca4b67b94ea678b613380a4 (diff) | |
download | php-git-9ce4941ec94fe8796b20e7389a65e1fb003c6785.tar.gz |
- Fixed bug #52162 (custom request header variables with numbers are removed)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | sapi/nsapi/nsapi.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Jun 2010, PHP 5.2.14 +- Fixed bug #52162 (custom request header variables with numbers are removed). + (Sriram Natarajan) - Fixed bug #52061 (memory_limit above 2G). (Felipe) - Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command). (Ilia, Felipe) diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index c847754471..88acb8252c 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -634,7 +634,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 = '_'; } } |