From: Michael Wallner Date: Tue, 16 Aug 2005 15:24:00 +0000 (+0000) Subject: - catch ranges starting with 0 X-Git-Tag: RELEASE_0_12_0~33 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2b3353e31dd2ca3e06b714688c651c38b3958c44;p=m6w6%2Fext-http - catch ranges starting with 0 --- 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':