From ff5b2d27ae0870507fbd2348c49e51bc7c27b825 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 7 Jun 2004 13:51:50 +0000 Subject: [PATCH] Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode adds extra spaces). --- main/SAPI.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.40.0