From 2b3353e31dd2ca3e06b714688c651c38b3958c44 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 16 Aug 2005 15:24:00 +0000 Subject: [PATCH] - catch ranges starting with 0 --- http_headers_api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http_headers_api.c b/http_headers_api.c index 11815f2..81a24e3 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -124,7 +124,10 @@ PHP_HTTP_API http_range_status _http_get_request_ranges(HashTable *ranges, size_ switch (c = *(range++)) { case '0': - *ptr *= 10; + /* allow 000... - shall we? */ + if (*ptr != -10) { + *ptr *= 10; + } break; case '1': case '2': case '3': -- 2.30.2