diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-06-07 13:51:50 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-06-07 13:51:50 +0000 |
commit | ff5b2d27ae0870507fbd2348c49e51bc7c27b825 (patch) | |
tree | 62e6ccb57d7c7be5f66b4a2927d26919abdf07e7 /main/SAPI.c | |
parent | 1b40042b35d654df1b3146224280ef59b8d10b4f (diff) | |
download | php-git-ff5b2d27ae0870507fbd2348c49e51bc7c27b825.tar.gz |
Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode
adds extra spaces).
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); |