From 60d91c35d7c2b4ce86ed67813f2f5a19266a30cc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 16 Sep 2005 14:23:03 +0000 Subject: [PATCH] - forward until we find a digit --- http_headers_api.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)); -- 2.30.2