Have hide-if-modified-since interpret the random
authorFabian Keil <fk@fabiankeil.de>
Fri, 8 Sep 2006 12:06:35 +0000 (12:06 +0000)
committerFabian Keil <fk@fabiankeil.de>
Fri, 8 Sep 2006 12:06:35 +0000 (12:06 +0000)
range value as minutes instead of hours. Allows
more fine-grained configuration.

parsers.c
templates/edit-actions-for-url

index 77e6c1a..a688cd0 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.68 2006/09/06 10:43:32 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.69 2006/09/06 16:25:51 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -40,6 +40,11 @@ const char parsers_rcs[] = "$Id: parsers.c,v 1.68 2006/09/06 10:43:32 fabiankeil
  *
  * Revisions   :
  *    $Log: parsers.c,v $
+ *    Revision 1.69  2006/09/06 16:25:51  fabiankeil
+ *    Always have parse_header_time return a pointer
+ *    that actual makes sense, even though we currently
+ *    only need it to detect problems.
+ *
  *    Revision 1.68  2006/09/06 10:43:32  fabiankeil
  *    Added config option enable-remote-http-toggle
  *    to specify if Privoxy should recognize special
@@ -2314,9 +2319,9 @@ jb_err client_if_modified_since(struct client_state *csp, char **header)
             }
             if(rtime)
             {
-               log_error(LOG_LEVEL_HEADER, "Randomizing: %s (random range: %d hou%s)",
-                  *header, rtime, (rtime == 1 || rtime == -1) ? "r": "rs");
-               rtime *= 3600;
+               log_error(LOG_LEVEL_HEADER, "Randomizing: %s (random range: %d minut%s)",
+                  *header, rtime, (rtime == 1 || rtime == -1) ? "e": "es");
+               rtime *= 60;
                rtime = pick_from_range(rtime);
             }
             else
index aa35245..6192cec 100644 (file)
 #
 # Revisions   :
 #    $Log: edit-actions-for-url,v $
+#    Revision 1.37  2006/09/05 18:20:14  fabiankeil
+#    Sorted alphabetically, fixed spelling mistakes
+#    and shortened some descriptions.
+#
 #    Revision 1.36  2006/08/14 08:29:17  fabiankeil
 #    Split filter-headers{} into filter-client-headers{}
 #    and filter-server-headers{}.
@@ -880,7 +884,7 @@ function show_send_wafer_opts(tf)
         for="hide_if_modified_since_mode_set">Add random amount of seconds in the range of</label>
         <input type="text" name="hide_if_modified_since_param" 
         id="hide_if_modified_since_param" size="4"
-        value="@hide-if-modified-since-param@"> hour(s).
+        value="@hide-if-modified-since-param@"> minute(s).
         To appreciate this option a small amount of paranoia is required,
         but at least in theory the If-Modified-Since header could be used
        to keep track of your visits.