]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #420: Deal properly with empty list elements
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 31 Mar 2008 23:30:27 +0000 (01:30 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 31 Mar 2008 23:30:27 +0000 (01:30 +0200)
yet another fix to previous commits, this time fixing how to deal with
quoted elements.

src/HttpHeaderTools.cc

index 41ce0fc644b390f07a90eea35374f49345144678..aa5e5fa3b0aa2bf30bc72cbf10d7d5183d52e463 100644 (file)
@@ -249,7 +249,7 @@ strListGetItem(const String * str, char del, const char **item, int *ilen, const
     static char delim[3][8] = {
                        "\"?,",
                        "\"\\",
-                       "\"?, \t\r\n"
+                       " ?,\t\r\n"
     };
     int quoted = 0;
     assert(str && item && pos);