From: hno <> Date: Tue, 22 Oct 2002 15:41:57 +0000 (+0000) Subject: Bugfix: strwordtok parsing of quoted strings failed miserably if the last X-Git-Tag: SQUID_3_0_PRE1~582 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2871ebb7a0cd5cc5c9128153994bcafb07d2fe4b;p=thirdparty%2Fsquid.git Bugfix: strwordtok parsing of quoted strings failed miserably if the last word in was quoted. --- diff --git a/helpers/external_acl/ldap_group/squid_ldap_group.c b/helpers/external_acl/ldap_group/squid_ldap_group.c index e1de6b6f45..f6c100fb30 100644 --- a/helpers/external_acl/ldap_group/squid_ldap_group.c +++ b/helpers/external_acl/ldap_group/squid_ldap_group.c @@ -191,6 +191,7 @@ strwordtok(char *buf, char **t) case '"': quoted = !quoted; p++; + break; default: if (!quoted && isspace(*p)) { p++; diff --git a/helpers/external_acl/unix_group/check_group.c b/helpers/external_acl/unix_group/check_group.c index 2a3b5c09e9..66b54e510b 100644 --- a/helpers/external_acl/unix_group/check_group.c +++ b/helpers/external_acl/unix_group/check_group.c @@ -1,5 +1,5 @@ /* - * $Id: check_group.c,v 1.1 2002/08/12 13:56:35 hno Exp $ + * $Id: check_group.c,v 1.2 2002/10/22 09:45:16 hno Exp $ * * This is a helper for the external ACL interface for Squid Cache * Copyright (C) 2002 Rodrigo Albani de Campos (rodrigo@geekbunker.org) @@ -96,6 +96,7 @@ strwordtok(char *buf, char **t) case '"': quoted = !quoted; p++; + break; default: if (!quoted && isspace(*p)) { p++; diff --git a/helpers/external_acl/winbind_group/wb_check_group.c b/helpers/external_acl/winbind_group/wb_check_group.c index 0b19533955..6b94155f66 100755 --- a/helpers/external_acl/winbind_group/wb_check_group.c +++ b/helpers/external_acl/winbind_group/wb_check_group.c @@ -1,5 +1,5 @@ /* - * $Id: wb_check_group.c,v 1.5 2002/09/08 09:25:59 hno Exp $ + * $Id: wb_check_group.c,v 1.6 2002/10/22 09:45:16 hno Exp $ * * This is a helper for the external ACL interface for Squid Cache * Copyright (C) 2002 Guido Serassio @@ -78,6 +78,7 @@ strwordtok(char *buf, char **t) case '"': quoted = !quoted; p++; + break; default: if (!quoted && isspace(*p)) { p++; diff --git a/src/tools.cc b/src/tools.cc index d039852a1f..676403ab9c 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.226 2002/10/13 20:35:06 robertc Exp $ + * $Id: tools.cc,v 1.227 2002/10/22 09:41:57 hno Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -1056,6 +1056,7 @@ strwordtok(char *buf, char **t) case '"': quoted = !quoted; p++; + break; default: if (!quoted && isspace(*p)) { p++;