From: Michael Wallner Date: Tue, 14 Mar 2006 09:01:11 +0000 (+0000) Subject: - rather use '\r'/'\n' character symbols than the hex values X-Git-Tag: RELEASE_1_0_0RC1~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d3cd7d7d793bb12c2c6fe363cd5b7f29b3fc666b;p=m6w6%2Fext-http - rather use '\r'/'\n' character symbols than the hex values --- diff --git a/http_filter_api.c b/http_filter_api.c index dcc7186..2553d68 100644 --- a/http_filter_api.c +++ b/http_filter_api.c @@ -165,8 +165,8 @@ static HTTP_FILTER_FUNCTION(chunked_decode) /* ignore preceeding CRLFs (too loose?) */ while (off < PHPSTR_LEN(buffer) && ( - PHPSTR_VAL(buffer)[off] == 0xa || - PHPSTR_VAL(buffer)[off] == 0xd)) { + PHPSTR_VAL(buffer)[off] == '\n' || + PHPSTR_VAL(buffer)[off] == '\r')) { ++off; } if (off) {