summaryrefslogtreecommitdiff
path: root/sapi/nsapi
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
commit2bb9bbb803f3c87f66d3d0e2e9dfa41a22340bf7 (patch)
tree79d7b0fa8fa4cdaba61291f7fcc56af2e68b79b0 /sapi/nsapi
parent08e1471c16ad810843d78d5a11143486da9ea0c7 (diff)
downloadphp-git-2bb9bbb803f3c87f66d3d0e2e9dfa41a22340bf7.tar.gz
- Fixed bug #52162 (custom request header variables with numbers are removed)
Diffstat (limited to 'sapi/nsapi')
-rw-r--r--sapi/nsapi/nsapi.c2
1 files changed, 1 insertions, 1 deletions
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 = '_';
}
}