From: Michael Wallner Date: Fri, 16 Sep 2005 14:23:03 +0000 (+0000) Subject: - forward until we find a digit X-Git-Tag: RELEASE_0_14_0~20 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=60d91c35d7c2b4ce86ed67813f2f5a19266a30cc;p=m6w6%2Fext-http - forward until we find a digit --- diff --git a/http_headers_api.c b/http_headers_api.c index 55be354..e320f46 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -152,9 +152,7 @@ PHP_HTTP_API HashTable *_http_negotiate_q(const char *header, HashTable *support if (separator = strchr(Z_STRVAL_PP(entry), ';')) { const char *ptr = separator; - do { - ++ptr; - } while ((*ptr == ' ') || (*ptr == 'q') || (*ptr == '=')); + while (*++ptr && !isdigit(*ptr)); quality = strtod(ptr, NULL); identifier = estrndup(Z_STRVAL_PP(entry), separator - Z_STRVAL_PP(entry));