mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode
adds extra spaces).
This commit is contained in:
parent
1b40042b35
commit
ff5b2d27ae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user