diff options
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 7fa56b02bc..979b37d9c8 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -606,6 +606,11 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) char *ptr = colon_offset+1; int ptr_len=0, result_len = 0; + /* skip white space */ + while (isspace(*ptr)) { + ptr++; + } + myuid = php_getuid(); ptr_len = strlen(ptr); |