From 8b112119d316cae9a66f1a02644312ec1a5ce461 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 8 Sep 2006 12:06:35 +0000 Subject: [PATCH] Have hide-if-modified-since interpret the random range value as minutes instead of hours. Allows more fine-grained configuration. --- parsers.c | 13 +++++++++---- templates/edit-actions-for-url | 6 +++++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/parsers.c b/parsers.c index 77e6c1a2..a688cd0a 100644 --- 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 diff --git a/templates/edit-actions-for-url b/templates/edit-actions-for-url index aa352457..6192cec6 100644 --- a/templates/edit-actions-for-url +++ b/templates/edit-actions-for-url @@ -32,6 +32,10 @@ # # 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 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. -- 2.39.2