From: Amos Jeffries Date: Wed, 30 Sep 2015 02:26:45 +0000 (-0700) Subject: Initialize helper query buffer, and SP-delimit tokens X-Git-Tag: SQUID_4_0_1~5^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09e3460839d70a98c2b6a937d41e264ee10e4eac;p=thirdparty%2Fsquid.git Initialize helper query buffer, and SP-delimit tokens --- diff --git a/src/external_acl.cc b/src/external_acl.cc index f463e5bfb8..73095739cf 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -274,6 +274,8 @@ parse_externalAclHelper(external_acl ** list) break; *fmt = new Format::Token; + // these tokens are whitespace delimited + (*fmt)->space = true; // compatibility for old tokens incompatible with Format::Token syntax #if USE_OPENSSL // dont bother if we dont have to. @@ -697,6 +699,7 @@ static char * makeExternalAclKey(ACLFilledChecklist * ch, external_acl_data * acl_data) { static MemBuf mb; + mb.reset(); // check for special case tokens in the format for (Format::Token *t = acl_data->def->format.format; t ; t = t->next) {