From d3cd7d7d793bb12c2c6fe363cd5b7f29b3fc666b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 14 Mar 2006 09:01:11 +0000 Subject: [PATCH] - rather use '\r'/'\n' character symbols than the hex values --- http_filter_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.30.2