From: Ilia Alshanetsky Date: Mon, 7 Jun 2004 13:51:50 +0000 (+0000) Subject: Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode X-Git-Tag: php-5.0.0RC3~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff5b2d27ae0870507fbd2348c49e51bc7c27b825;p=php Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode adds extra spaces). --- 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);