]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugfix: strwordtok parsing of quoted strings failed miserably if the last
authorhno <>
Tue, 22 Oct 2002 15:41:57 +0000 (15:41 +0000)
committerhno <>
Tue, 22 Oct 2002 15:41:57 +0000 (15:41 +0000)
word in was quoted.

helpers/external_acl/ldap_group/squid_ldap_group.c
helpers/external_acl/unix_group/check_group.c
helpers/external_acl/winbind_group/wb_check_group.c
src/tools.cc

index e1de6b6f4511b9780388c2ed5e60d058bd3b6404..f6c100fb30e28b079eee0a1afd5020553434ac9f 100644 (file)
@@ -191,6 +191,7 @@ strwordtok(char *buf, char **t)
        case '"':
            quoted = !quoted;
            p++;
+           break;
        default:
            if (!quoted && isspace(*p)) {
                p++;
index 2a3b5c09e9b19c8162f9308b069457999b274c73..66b54e510be8f118f789d3a6d1a8554b43d29ed3 100644 (file)
@@ -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++;
index 0b19533955beb0fbc47c2bf8195c2f708a20a272..6b94155f66a50276b170261f1231c486277b3884 100755 (executable)
@@ -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 <squidnt@serassio.it>
@@ -78,6 +78,7 @@ strwordtok(char *buf, char **t)
        case '"':
            quoted = !quoted;
            p++;
+           break;
        default:
            if (!quoted && isspace(*p)) {
                p++;
index d039852a1f49513ffdab8e922b4c5df7d9a11a5e..676403ab9c12713cc65127d7bd84512792f9e7f3 100644 (file)
@@ -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++;