From: hno <> Date: Sat, 7 Sep 2002 21:02:24 +0000 (+0000) Subject: Make parse_wordlist understand about quoted strings (via strwordtok). X-Git-Tag: SQUID_3_0_PRE1~776 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3c6890f56d1ed8954ab6f36f5792c33e155f4d9;p=thirdparty%2Fsquid.git Make parse_wordlist understand about quoted strings (via strwordtok). 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. --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 3636aec801..9a01f11b00 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -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); }