]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
strip_query_terms option
authorwessels <>
Wed, 16 Dec 1998 00:33:58 +0000 (00:33 +0000)
committerwessels <>
Wed, 16 Dec 1998 00:33:58 +0000 (00:33 +0000)
src/cf.data.pre
src/structs.h
src/url.cc

index c5a2dbc9455a5174bfb07b88237af3386ddb854d..9601f27c67e2395844c56c05243f4d5a3e255c10 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.130 1998/12/11 20:06:50 wessels Exp $
+# $Id: cf.data.pre,v 1.131 1998/12/15 17:34:00 wessels Exp $
 #
 #
 # SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -2764,4 +2764,14 @@ DOC_START
 prefer_direct on
 DOC_END
 
+NAME: strip_query_terms
+TYPE: onoff
+LOC: Config.onoff.strip_query_terms
+DEFAULT: on
+DOC_START
+       By default, Squid strips query terms from requested URLs before
+       logging.  This protects your user's privacy.
+strip_query_terms on
+DOC_END
+
 EOF
index 1fe89e700ddcc95dc3134f190e019ac37340625b..74ccd10ad7c47a598b428b0eed4a81cea8e54d4f 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: structs.h,v 1.253 1998/12/11 20:06:52 wessels Exp $
+ * $Id: structs.h,v 1.254 1998/12/15 17:33:58 wessels Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -352,6 +352,7 @@ struct _SquidConfig {
        int redir_rewrites_host;
        int persistent_client_posts;
        int prefer_direct;
+       int strip_query_terms;
     } onoff;
     acl *aclList;
     struct {
index fc0853dbc071f2decd886f208de084affb200eb9..72cdcf3b5255917f1960c20f7e6885f1383e94a8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: url.cc,v 1.110 1998/12/09 04:16:48 wessels Exp $
+ * $Id: url.cc,v 1.111 1998/12/15 17:33:59 wessels Exp $
  *
  * DEBUG: section 23    URL Parsing
  * AUTHOR: Duane Wessels
@@ -351,8 +351,9 @@ urlCanonicalClean(const request_t * request)
            /*
             * strip arguments AFTER a question-mark
             */
-           if ((t = strchr(buf, '?')))
-               *(++t) = '\0';
+           if (Config.onoff.strip_query_terms)
+               if ((t = strchr(buf, '?')))
+                   *(++t) = '\0';
            break;
        }
     }