From: Henrik Nordstrom Date: Fri, 28 Mar 2008 20:46:41 +0000 (+0100) Subject: Bug #420: Fails to parse Connection: ,,,Header,,, X-Git-Tag: BASIC_TPROXY4~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5aff5fce777cf808e7cee985bab6edb4368888ed;p=thirdparty%2Fsquid.git Bug #420: Fails to parse Connection: ,,,Header,,, and other list constructs with empty members --- diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index 919767a229..17daefa6ad 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -269,6 +269,9 @@ strListGetItem(const String * str, char del, const char **item, int *ilen, const /* skip leading ws (ltrim) */ *pos += xcountws(*pos); + /* skip leading delimiters */ + *pos += strspn(*pos, delim[0]); + *item = *pos; /* remember item's start */ /* find next delimiter */