summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSriram Natarajan <srinatar@php.net>2010-06-23 19:06:33 +0000
committerSriram Natarajan <srinatar@php.net>2010-06-23 19:06:33 +0000
commit9ce4941ec94fe8796b20e7389a65e1fb003c6785 (patch)
tree692946f4e578466cd8d5a61a387dfcb078084634
parent1b59a2cb3c7ef403fca4b67b94ea678b613380a4 (diff)
downloadphp-git-9ce4941ec94fe8796b20e7389a65e1fb003c6785.tar.gz
- Fixed bug #52162 (custom request header variables with numbers are removed)
-rw-r--r--NEWS2
-rw-r--r--sapi/nsapi/nsapi.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5d7b268ef8..4cc9bb0d55 100644
--- a/NEWS
+++ b/NEWS
@@ -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 = '_';
}
}