projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
229730a
)
- forward until we find a digit
author
Michael Wallner
<mike@php.net>
Fri, 16 Sep 2005 14:23:03 +0000
(14:23 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 16 Sep 2005 14:23:03 +0000
(14:23 +0000)
http_headers_api.c
patch
|
blob
|
history
diff --git
a/http_headers_api.c
b/http_headers_api.c
index 55be354afbc50feaf56817e64812647511b1b6ac..e320f46b8ca2864e108c70d425464361ef86a7da 100644
(file)
--- 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));