Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode

adds extra spaces).
This commit is contained in:
Ilia Alshanetsky 2004-06-07 13:51:50 +00:00
parent 1b40042b35
commit ff5b2d27ae

View File

@ -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);