privoxy.git
14 years agoBump copyright year.
Fabian Keil [Thu, 22 Jul 2010 14:52:30 +0000 (14:52 +0000)]
Bump copyright year.

14 years agoAdd the --statistics option to the SYNOPSIS.
Fabian Keil [Thu, 22 Jul 2010 14:51:59 +0000 (14:51 +0000)]
Add the --statistics option to the SYNOPSIS.

14 years agoAdd a --shorten-thread-ids option to replace the thread id with a decimal number.
Fabian Keil [Thu, 22 Jul 2010 14:51:19 +0000 (14:51 +0000)]
Add a --shorten-thread-ids option to replace the thread id with a decimal number.

14 years agoRename jb_err_to_string()'s parameter to jb_error to prevent shadowing issues after...
Fabian Keil [Wed, 21 Jul 2010 14:43:03 +0000 (14:43 +0000)]
Rename jb_err_to_string()'s parameter to jb_error to prevent shadowing issues after the next commit.

14 years agoAccept and ignore: Looks like we got the last chunk together with the server headers...
Fabian Keil [Wed, 21 Jul 2010 14:40:42 +0000 (14:40 +0000)]
Accept and ignore: Looks like we got the last chunk together with the server headers. We better stop reading.

14 years agoAccept and ignore: Continue hack in da house.
Fabian Keil [Wed, 21 Jul 2010 14:40:09 +0000 (14:40 +0000)]
Accept and ignore: Continue hack in da house.

14 years agoIn chat(), add another last-chunk-check right after parsing the server headers.
Fabian Keil [Wed, 21 Jul 2010 14:39:20 +0000 (14:39 +0000)]
In chat(), add another last-chunk-check right after parsing the server headers.

Should fix #3028326 reported by "Karsten".

The check at the beginning of the loop should be obsolete
now, but there's no hurry to remove it right away.

14 years agoRemove the next member from the client_state struct.
Fabian Keil [Wed, 21 Jul 2010 14:35:09 +0000 (14:35 +0000)]
Remove the next member from the client_state struct.

Only the main thread needs access to all client
states so give it its own struct.

14 years agoRemove an unnecessary list_remove_all() call in chat().
Fabian Keil [Wed, 21 Jul 2010 14:32:00 +0000 (14:32 +0000)]
Remove an unnecessary list_remove_all() call in chat().

The headers are free'd later on anyway and there's no point to special-case them there.

14 years agoGarbage-collect request_contains_null_bytes().
Fabian Keil [Wed, 21 Jul 2010 14:30:40 +0000 (14:30 +0000)]
Garbage-collect request_contains_null_bytes().

14 years agoDitch redundant code in unload_configfile().
Fabian Keil [Wed, 21 Jul 2010 14:29:59 +0000 (14:29 +0000)]
Ditch redundant code in unload_configfile().

14 years agoIn server_response_is_complete(), expect no body if the status code is 204.
Fabian Keil [Mon, 12 Jul 2010 16:01:23 +0000 (16:01 +0000)]
In server_response_is_complete(), expect no body if the status code is 204.

Should fix #3022042 and #3025553, reported by a user with no visible name.

Most likely also fixes a bunch of other AJAX-related problem
reports we closed in the past due to insufficient information.

14 years agoFix a bunch of anchors that used underscores instead of dashes.
Fabian Keil [Mon, 5 Jul 2010 17:29:18 +0000 (17:29 +0000)]
Fix a bunch of anchors that used underscores instead of dashes.

14 years agoblock another omniture tracking domain
Lee [Fri, 18 Jun 2010 14:49:33 +0000 (14:49 +0000)]
block another omniture tracking domain

14 years agoDitch LogGetURLUnderCursor() which doesn't seem to be used anywhere.
Fabian Keil [Sun, 13 Jun 2010 12:31:04 +0000 (12:31 +0000)]
Ditch LogGetURLUnderCursor() which doesn't seem to be used anywhere.

Spotted by cppcheck.

14 years agoIn write_socket(), remove the write-only variable write_len in an ifdef __OS2__ block.
Fabian Keil [Sun, 13 Jun 2010 12:30:10 +0000 (12:30 +0000)]
In write_socket(), remove the write-only variable write_len in an ifdef __OS2__ block.

Spotted by cppcheck.

14 years agoIn resolve_hostname_to_ip(), limit the scope of the variable 'dns_retries'.
Fabian Keil [Sun, 13 Jun 2010 12:29:05 +0000 (12:29 +0000)]
In resolve_hostname_to_ip(), limit the scope of the variable 'dns_retries'.

14 years agoIn connect_to(), don't declare the variable 'flags' on OS/2 where it isn't used.
Fabian Keil [Sun, 13 Jun 2010 12:28:27 +0000 (12:28 +0000)]
In connect_to(), don't declare the variable 'flags' on OS/2 where it isn't used.

Spotted by cppcheck.

14 years agoIn xtoi(), limit the scope of the variable d2.
Fabian Keil [Sun, 13 Jun 2010 12:27:39 +0000 (12:27 +0000)]
In xtoi(), limit the scope of the variable d2.

14 years agoIn main(), limit the scope of the variable pid.
Fabian Keil [Sun, 13 Jun 2010 12:27:03 +0000 (12:27 +0000)]
In main(), limit the scope of the variable pid.

14 years agoIn client_if_modified_since(), limit the scope of the variables hours, minutes and...
Fabian Keil [Sun, 13 Jun 2010 12:26:32 +0000 (12:26 +0000)]
In client_if_modified_since(), limit the scope of the variables hours, minutes and seconds.

14 years agoIn server_last_modified(), limit the scope of the variables days, hours, minutes...
Fabian Keil [Sun, 13 Jun 2010 12:26:04 +0000 (12:26 +0000)]
In server_last_modified(), limit the scope of the variables days, hours, minutes and seconds.

14 years agoIn add_to_iob(), limit the scope of the variable 'want' and turn an interestingly...
Fabian Keil [Sun, 13 Jun 2010 12:25:33 +0000 (12:25 +0000)]
In add_to_iob(), limit the scope of the variable 'want' and turn an interestingly looking for loop into a boring while loop.

14 years agoFix comment typo.
Fabian Keil [Sun, 13 Jun 2010 12:24:49 +0000 (12:24 +0000)]
Fix comment typo.

14 years agoAccept and highlight actions and filter filte loading:
Fabian Keil [Sun, 30 May 2010 16:44:25 +0000 (16:44 +0000)]
Accept and highlight actions and filter filte loading:
Loading actions file: /usr/local/etc/privoxy/default.action
Loading filter file: /usr/local/etc/privoxy/default.filter

14 years agoDoes it make any difference if it's
Lee [Sun, 30 May 2010 12:17:54 +0000 (12:17 +0000)]
Does it make any difference if it's
#Blocked URL
instead of
# Blocked URL
like all the others?

14 years agojavascript needs to be blocked with +handle-as-empty-document to
Lee [Sun, 30 May 2010 12:13:05 +0000 (12:13 +0000)]
javascript needs to be blocked with +handle-as-empty-document to
work around Firefox bug 492459.  So move .js blockers from
  +block{Might be a web-bug.} -handle-as-empty-document
to
  +block{Might be a web-bug.} +handle-as-empty-document

14 years agoijbswa-Feature Requests-3006719 - Block 160x578 Banners
Lee [Sat, 29 May 2010 20:03:14 +0000 (20:03 +0000)]
ijbswa-Feature Requests-3006719 - Block 160x578 Banners
I'm not sure about blocking 160x578 images, but
  pagead2.googlesyndication.com/pagead/imagad?xxx
could use blocking.

14 years agocreate a log record when reading an action, filter or trust file.
Lee [Wed, 26 May 2010 23:01:47 +0000 (23:01 +0000)]
create a log record when reading an action, filter or trust file.

14 years agoRemove an incorrect cgi_error_unknown() call in a cannnot-happen-situation in send_cr...
Fabian Keil [Mon, 24 May 2010 11:40:27 +0000 (11:40 +0000)]
Remove an incorrect cgi_error_unknown() call in a cannnot-happen-situation in send_crunch_response().

14 years agoClean up white-space in http_response definition and move the crunch_reason to the...
Fabian Keil [Mon, 24 May 2010 11:39:36 +0000 (11:39 +0000)]
Clean up white-space in http_response definition and move the crunch_reason to the beginning.

14 years agoTurn http_response.reason into an enum and rename it to http_response.crunch_reason.
Fabian Keil [Mon, 24 May 2010 11:38:22 +0000 (11:38 +0000)]
Turn http_response.reason into an enum and rename it to http_response.crunch_reason.

14 years agoEnable user.filter by default. Suggested by David White in #3001830.
Fabian Keil [Sun, 23 May 2010 12:11:18 +0000 (12:11 +0000)]
Enable user.filter by default. Suggested by David White in #3001830.

14 years agoBlock .sitestat.com/. Reported by johnd16 in #3002725.
Fabian Keil [Sun, 23 May 2010 11:54:54 +0000 (11:54 +0000)]
Block .sitestat.com/. Reported by johnd16 in #3002725.

14 years agoBlock .atemda.com/. Reported by johnd16 in #3002723.
Fabian Keil [Sun, 23 May 2010 11:54:31 +0000 (11:54 +0000)]
Block .atemda.com/. Reported by johnd16 in #3002723.

14 years agoBlock js.adlink.net/. Reported by johnd16 in #3002720.
Fabian Keil [Sun, 23 May 2010 11:53:57 +0000 (11:53 +0000)]
Block js.adlink.net/. Reported by johnd16 in #3002720.

14 years agoAdd missing protocol in block tests.
Fabian Keil [Sun, 23 May 2010 11:53:35 +0000 (11:53 +0000)]
Add missing protocol in block tests.

14 years agoBlock .analytics.yahoo.com/. Reported by johnd16 in #3002713.
Fabian Keil [Sun, 23 May 2010 11:20:48 +0000 (11:20 +0000)]
Block .analytics.yahoo.com/. Reported by johnd16 in #3002713.

14 years agofix for ijbswa-Support Requests-3001830: Activate user.filter by default
Lee [Sat, 22 May 2010 16:50:07 +0000 (16:50 +0000)]
fix for ijbswa-Support Requests-3001830: Activate user.filter by default

14 years agoFix regression test for metrics.torproject.org.
Fabian Keil [Sat, 1 May 2010 18:23:00 +0000 (18:23 +0000)]
Fix regression test for metrics.torproject.org.

14 years agoBlock sb.scorecardresearch.com, too.
Fabian Keil [Sat, 1 May 2010 18:22:13 +0000 (18:22 +0000)]
Block sb.scorecardresearch.com, too.

Reported by dg1727 in #2992652.

14 years agoExplicitly mention how to match any URL.
Fabian Keil [Sat, 1 May 2010 18:21:30 +0000 (18:21 +0000)]
Explicitly mention how to match any URL.

14 years agoFactor filters_available() out of filter_header(), header_tagger() and pcrs_filter_re...
Fabian Keil [Sat, 1 May 2010 18:20:50 +0000 (18:20 +0000)]
Factor filters_available() out of filter_header(), header_tagger() and pcrs_filter_response().

14 years agoFactor prepare_csp_for_next_request() out of serve().
Fabian Keil [Sat, 1 May 2010 18:19:56 +0000 (18:19 +0000)]
Factor prepare_csp_for_next_request() out of serve().

14 years agoRename socket_is_still_usable() to socket_is_still_alive().
Fabian Keil [Fri, 23 Apr 2010 11:53:48 +0000 (11:53 +0000)]
Rename socket_is_still_usable() to socket_is_still_alive().

The fact that a socket is still alive doesn't mean that it's
still (re)usable and given that the function only checks the
former, the previous name was a bit misleading.

14 years agoIn finish_http_response(), continue to add the 'Connection: close' header if the...
Fabian Keil [Wed, 21 Apr 2010 20:48:06 +0000 (20:48 +0000)]
In finish_http_response(), continue to add the 'Connection: close' header if the client connection will not be kept alive.

Anonymously pointed out in #2987454.

14 years agoAlso let refresh-tags filter invalid refresh tags where the 'url=' part is missing.
Fabian Keil [Sun, 18 Apr 2010 11:20:48 +0000 (11:20 +0000)]
Also let refresh-tags filter invalid refresh tags where the 'url=' part is missing.

Anonymously reported in #2986382.

While at it, update the description to mention the fact that only
refresh tags with refresh times above 9 seconds are covered.

14 years agoAllow to keep the client connection alive after crunching the previous request.
Fabian Keil [Mon, 12 Apr 2010 16:51:31 +0000 (16:51 +0000)]
Allow to keep the client connection alive after crunching the previous request.

Already opened server connections can be kept alive, too.

14 years agoStop adding a "Connection: close" header in finish_http_response(), as we're no longe...
Fabian Keil [Mon, 12 Apr 2010 16:48:45 +0000 (16:48 +0000)]
Stop adding a "Connection: close" header in finish_http_response(), as we're no longer required to do it.

14 years agoAdd: 79) Evaluate pcre alternatives.
Fabian Keil [Mon, 12 Apr 2010 16:43:21 +0000 (16:43 +0000)]
Add: 79) Evaluate pcre alternatives.

14 years agoAdd: 78) Allow to optionally use pcre's DFA algorithm.
Fabian Keil [Mon, 12 Apr 2010 16:42:54 +0000 (16:42 +0000)]
Add: 78) Allow to optionally use pcre's DFA algorithm.

14 years agoAllow metrics.torproject.org
Lee [Sat, 10 Apr 2010 18:34:17 +0000 (18:34 +0000)]
Allow metrics.torproject.org

14 years agoTwo minor style fixes for block_url().
Fabian Keil [Sat, 3 Apr 2010 13:23:28 +0000 (13:23 +0000)]
Two minor style fixes for block_url().

14 years agoDitch code in block_url() that has been dead for years.
Fabian Keil [Sat, 3 Apr 2010 13:22:56 +0000 (13:22 +0000)]
Ditch code in block_url() that has been dead for years.

14 years agoFix the tense in a comment in send_crunch_response().
Fabian Keil [Sat, 3 Apr 2010 13:21:53 +0000 (13:21 +0000)]
Fix the tense in a comment in send_crunch_response().

14 years agoImprove chat()'s description a bit.
Fabian Keil [Sat, 3 Apr 2010 13:21:30 +0000 (13:21 +0000)]
Improve chat()'s description a bit.

14 years agoFix a regression introduced with the previous commit.
Fabian Keil [Sun, 28 Mar 2010 18:02:22 +0000 (18:02 +0000)]
Fix a regression introduced with the previous commit.

The (url_param[0] != '\0') check wasn't supposed to prevent
strstr() from segfaulting (which makes no sense), but to detect
whether or not an URL has been specified.

'Optimizing' it away was thus a dumb move.

14 years agoMention that the internal PCRE version is outdated.
Fabian Keil [Sun, 28 Mar 2010 17:35:09 +0000 (17:35 +0000)]
Mention that the internal PCRE version is outdated.

14 years agoDon't handle view.atdmt.com as image. It's used for click-throughs so users should...
Fabian Keil [Sat, 27 Mar 2010 18:58:38 +0000 (18:58 +0000)]
Don't handle view.atdmt.com as image. It's used for click-throughs so users should be able to "go there anyway".

Reported by Adam Piggott in #2975927.

14 years agoTag CSS and image requests with cautious and medium settings, too.
Fabian Keil [Sat, 27 Mar 2010 18:48:38 +0000 (18:48 +0000)]
Tag CSS and image requests with cautious and medium settings, too.

14 years agoBump BROWSER_FOO variables for Firefox 3.6.2.
Fabian Keil [Sat, 27 Mar 2010 18:30:33 +0000 (18:30 +0000)]
Bump BROWSER_FOO variables for Firefox 3.6.2.

14 years agoIn cgi_show_url_info(), don't forget to prefix URLs that only contain http:// or...
Fabian Keil [Sat, 27 Mar 2010 18:29:59 +0000 (18:29 +0000)]
In cgi_show_url_info(), don't forget to prefix URLs that only contain  or https:/ in the path.

Fixes #2975765 reported by Adam Piggott.

14 years agoActionsfile feedback item #2974204 2010-03-21
Lee [Sat, 27 Mar 2010 16:13:28 +0000 (16:13 +0000)]
Actionsfile feedback item #2974204 2010-03-21
don't block adesklets.sourceforge.net

14 years agoActionsfile feedback item #2975895 2010-03-24
Lee [Sat, 27 Mar 2010 15:44:57 +0000 (15:44 +0000)]
Actionsfile feedback item #2975895 2010-03-24
block chartbeat ping tracking

14 years agoRemove the too broad yahoo section, only keeping the fast-redirects exception as...
Fabian Keil [Sun, 7 Mar 2010 12:25:56 +0000 (12:25 +0000)]
Remove the too broad yahoo section, only keeping the fast-redirects exception as discussed on ijbswa-devel@.

14 years agoShow the 404 CGI page if cgi_send_user_manual() is called while local user manual...
Fabian Keil [Sun, 7 Mar 2010 12:07:51 +0000 (12:07 +0000)]
Show the 404 CGI page if cgi_send_user_manual() is called while local user manual delivery is disabled.

14 years agoBump version to 3.0.17 UNRELEASED.
Fabian Keil [Sun, 7 Mar 2010 12:05:46 +0000 (12:05 +0000)]
Bump version to 3.0.17 UNRELEASED.

14 years agoFix problems noticed on Yahoo mail and news pages
Lee [Sun, 28 Feb 2010 16:49:05 +0000 (16:49 +0000)]
Fix problems noticed on Yahoo mail and news pages

14 years agoFix spelling.
Fabian Keil [Sat, 27 Feb 2010 12:13:17 +0000 (12:13 +0000)]
Fix spelling.

14 years agoConsistently recommending socks5 in the Tor entry and mention its advantage compared...
Fabian Keil [Sat, 27 Feb 2010 12:12:13 +0000 (12:12 +0000)]
Consistently recommending socks5 in the Tor entry and mention its advantage compared to socks4a.
Reported by David in #2960129.

14 years agofix typo
Lee [Sat, 20 Feb 2010 18:08:31 +0000 (18:08 +0000)]
fix typo

14 years agoFix incorrect regression test markup.
Fabian Keil [Sat, 20 Feb 2010 15:31:19 +0000 (15:31 +0000)]
Fix incorrect regression test markup.

The action is actually called hide-referrer. While Privoxy accepts
hide-referer, too, it uses the real name for the final results,
letting the test for hide-referer fail.

I didn't investigate this earlier as I'm overriding this section
locally anyway, so the test failure is expected. Looks like
Privoxy-Regression-Test really needs Override-URL support ...

14 years agoUse $(SSH) instead of ssh, so one only needs to specify a username once.
Fabian Keil [Sat, 20 Feb 2010 12:53:30 +0000 (12:53 +0000)]
Use $(SSH) instead of ssh, so one only needs to specify a username once.

Yet to be tested ...

14 years agoThe action feedback thingy hasn't been working for years, so don't let the webserver...
Fabian Keil [Sat, 20 Feb 2010 12:51:38 +0000 (12:51 +0000)]
The action feedback thingy hasn't been working for years, so don't let the webserver target mess with it.

This didn't actually work anyway, as the permissions seem to be busted.

14 years agoConsistently use shell.sourceforge.net instead of shell.sf.net so one doesn't need...
Fabian Keil [Sat, 20 Feb 2010 12:50:44 +0000 (12:50 +0000)]
Consistently use shell.sourceforge.net instead of shell.sf.net so one doesn't need to check server fingerprints twice.

14 years agoFix webserver and webactions targets to work with standard tar.
Fabian Keil [Sat, 20 Feb 2010 12:49:54 +0000 (12:49 +0000)]
Fix webserver and webactions targets to work with standard tar.

14 years agoThis is the traditional "fix announcement after tagging and releasing the tarball...
Fabian Keil [Sat, 20 Feb 2010 12:01:16 +0000 (12:01 +0000)]
This is the traditional "fix announcement after tagging and releasing the tarball" commit.

14 years agoUpdate for 3.0.16 stable.
Fabian Keil [Fri, 19 Feb 2010 17:21:55 +0000 (17:21 +0000)]
Update for 3.0.16 stable.

14 years agoHopefully the final rebuilt for 3.0.16 stable ...
Fabian Keil [Fri, 19 Feb 2010 17:00:42 +0000 (17:00 +0000)]
Hopefully the final rebuilt for 3.0.16 stable ...

14 years agoRebuild from source.
Fabian Keil [Fri, 19 Feb 2010 16:58:37 +0000 (16:58 +0000)]
Rebuild from source.

14 years agoLet the default listen-address match reality.
Fabian Keil [Fri, 19 Feb 2010 16:50:05 +0000 (16:50 +0000)]
Let the default listen-address match reality.

14 years agoRemove a Debian/Ubuntu reference in the RUN section.
Fabian Keil [Fri, 19 Feb 2010 16:46:03 +0000 (16:46 +0000)]
Remove a Debian/Ubuntu reference in the RUN section.

The section is about Privoxy the binary, not about specific distribution packages.

14 years agoLet the donate link appear in the README too and add a link to the participate FAQ...
Fabian Keil [Fri, 19 Feb 2010 16:44:42 +0000 (16:44 +0000)]
Let the donate link appear in the README too and add a link to the participate FAQ entry.

While at it, call the license by its full name.

14 years agoSome manual improvements that need to be moved over to readme.sgml later on.
Fabian Keil [Fri, 19 Feb 2010 16:21:07 +0000 (16:21 +0000)]
Some manual improvements that need to be moved over to readme.sgml later on.

14 years agoEven more fixes.
Fabian Keil [Fri, 19 Feb 2010 16:00:38 +0000 (16:00 +0000)]
Even more fixes.

14 years agoAdd missing word.
Fabian Keil [Fri, 19 Feb 2010 15:22:47 +0000 (15:22 +0000)]
Add missing word.

14 years agoManually add the changes from the last p-config.sgml update.
Fabian Keil [Mon, 15 Feb 2010 16:47:14 +0000 (16:47 +0000)]
Manually add the changes from the last p-config.sgml update.

Somehow they didn't make it previously.

14 years agoRebuilt for 3.0.16 stable. Once more, with feeling.
Fabian Keil [Mon, 15 Feb 2010 15:50:38 +0000 (15:50 +0000)]
Rebuilt for 3.0.16 stable. Once more, with feeling.

14 years agoRebuilt man page for 3.0.16 stable.
Fabian Keil [Mon, 15 Feb 2010 15:49:37 +0000 (15:49 +0000)]
Rebuilt man page for 3.0.16 stable.

14 years agoRebuilt for 3.0.16 stable.
Fabian Keil [Mon, 15 Feb 2010 15:49:08 +0000 (15:49 +0000)]
Rebuilt for 3.0.16 stable.

14 years agoRebuilt for 3.0.16 stable. Two debug lines needed manual interaction.
Fabian Keil [Mon, 15 Feb 2010 15:48:44 +0000 (15:48 +0000)]
Rebuilt for 3.0.16 stable. Two debug lines needed manual interaction.

14 years agoMention the use of the no-such-domain template for DNS problems with FEATURE_IPV6_SUP...
Fabian Keil [Mon, 15 Feb 2010 15:30:13 +0000 (15:30 +0000)]
Mention the use of the no-such-domain template for DNS problems with FEATURE_IPV6_SUPPORT enabled.

14 years agoAlso use the no-such-domain template if resolving addresses with getaddrinfo() fails.
Fabian Keil [Mon, 15 Feb 2010 15:14:10 +0000 (15:14 +0000)]
Also use the no-such-domain template if resolving addresses with getaddrinfo() fails.

Reported by 'zebul666' in #2950483.

14 years agoTurns out forwarded-connect-retries is partly broken. Spread the news.
Fabian Keil [Mon, 15 Feb 2010 15:07:56 +0000 (15:07 +0000)]
Turns out forwarded-connect-retries is partly broken. Spread the news.

14 years agoUpdate for 3.0.16 stable.
Fabian Keil [Mon, 15 Feb 2010 14:47:38 +0000 (14:47 +0000)]
Update for 3.0.16 stable.

14 years agoMinor rewording.
Fabian Keil [Sun, 14 Feb 2010 17:59:31 +0000 (17:59 +0000)]
Minor rewording.

14 years agoRebuilt with p-status stable. D'oh.
Fabian Keil [Sat, 13 Feb 2010 17:51:24 +0000 (17:51 +0000)]
Rebuilt with p-status stable. D'oh.

14 years agoUpdate entities for 3.0.16 stable.
Fabian Keil [Sat, 13 Feb 2010 17:38:39 +0000 (17:38 +0000)]
Update entities for 3.0.16 stable.

14 years agoCosmetics.
Fabian Keil [Sat, 13 Feb 2010 16:43:35 +0000 (16:43 +0000)]
Cosmetics.

14 years agoUpdate copyright.
Fabian Keil [Sat, 13 Feb 2010 16:41:03 +0000 (16:41 +0000)]
Update copyright.