]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make parse_wordlist understand about quoted strings (via strwordtok).
authorhno <>
Sat, 7 Sep 2002 21:02:24 +0000 (21:02 +0000)
committerhno <>
Sat, 7 Sep 2002 21:02:24 +0000 (21:02 +0000)
This allows the use of complex parameters to helpers and other similar
things by quoting the words/arguments in a manner people are used to.

src/cache_cf.cc

index 3636aec80159740a52e49ec11cb0121e938a47a5..9a01f11b00f4cd9d775f1f7ae83426b3785a0a1a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.412 2002/09/07 14:55:24 hno Exp $
+ * $Id: cache_cf.cc,v 1.413 2002/09/07 15:02:24 hno Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -2155,7 +2155,8 @@ void
 parse_wordlist(wordlist ** list)
 {
     char *token;
-    while ((token = strtok(NULL, w_space)))
+    char *t = strtok(NULL, "");
+    while ((token = strwordtok(NULL, &t)))
        wordlistAdd(list, token);
 }