privoxy.git
13 years agoRebuild for the 3.0.17 release.
Fabian Keil [Sat, 6 Nov 2010 12:56:15 +0000 (12:56 +0000)]
Rebuild for the 3.0.17 release.

13 years agoSet p-version to 3.0.17
Fabian Keil [Sat, 6 Nov 2010 12:55:48 +0000 (12:55 +0000)]
Set p-version to 3.0.17

13 years agoIn stats_loop(), add the ignore handler for LOG_LEVEL_RECEIVED.
Fabian Keil [Sat, 6 Nov 2010 12:10:29 +0000 (12:10 +0000)]
In stats_loop(), add the ignore handler for LOG_LEVEL_RECEIVED.

13 years agoAdd an entry about detecting system time travel.
Fabian Keil [Sat, 6 Nov 2010 11:58:16 +0000 (11:58 +0000)]
Add an entry about detecting system time travel.

13 years agoNote the unlimited-config-lines branch which should be merged after the next release.
Fabian Keil [Sat, 6 Nov 2010 11:58:01 +0000 (11:58 +0000)]
Note the unlimited-config-lines branch which should be merged after the next release.

13 years agoNote that I started working on 57)
Fabian Keil [Sat, 6 Nov 2010 11:57:46 +0000 (11:57 +0000)]
Note that I started working on 57)

13 years agoMention that adding DTrace hooks makes sense now.
Fabian Keil [Sat, 6 Nov 2010 11:57:31 +0000 (11:57 +0000)]
Mention that adding DTrace hooks makes sense now.

13 years agoMention a possibility how to deal with 40)
Fabian Keil [Sat, 6 Nov 2010 11:57:00 +0000 (11:57 +0000)]
Mention a possibility how to deal with 40)

13 years agoNote that POST parameters can be logged now.
Fabian Keil [Sat, 6 Nov 2010 11:55:49 +0000 (11:55 +0000)]
Note that POST parameters can be logged now.

13 years agoSilence a 'gcc (Debian 4.3.2-1.1) 4.3.2' warning on i686 GNU/Linux.
Fabian Keil [Sat, 6 Nov 2010 11:48:32 +0000 (11:48 +0000)]
Silence a 'gcc (Debian 4.3.2-1.1) 4.3.2' warning on i686 GNU/Linux.

13 years agoAdd two sections to get Flickr's Ajax interface working with default pre-settings.
Fabian Keil [Sat, 6 Nov 2010 10:47:59 +0000 (10:47 +0000)]
Add two sections to get Flickr's Ajax interface working with default pre-settings.

Reported by Mathias Homann in #3101419 and by Patrick on ijbswa-users@.

13 years agoUpdate the 'important changes' section.
Fabian Keil [Sat, 6 Nov 2010 10:47:12 +0000 (10:47 +0000)]
Update the 'important changes' section.

13 years agoPolish a few more change descriptions.
Fabian Keil [Mon, 1 Nov 2010 12:49:43 +0000 (12:49 +0000)]
Polish a few more change descriptions.

13 years agoFix grammar.
Fabian Keil [Mon, 1 Nov 2010 12:49:26 +0000 (12:49 +0000)]
Fix grammar.

13 years agoClarify a documentation change.
Fabian Keil [Mon, 1 Nov 2010 12:49:02 +0000 (12:49 +0000)]
Clarify a documentation change.

13 years agoPolish the action file changes a bit.
Fabian Keil [Mon, 1 Nov 2010 12:48:46 +0000 (12:48 +0000)]
Polish the action file changes a bit.

13 years agoRemove a duplicate
Fabian Keil [Mon, 1 Nov 2010 12:48:32 +0000 (12:48 +0000)]
Remove a duplicate

13 years agoFrom a user perspective the GNUmakefile improvements matter even less than the code...
Fabian Keil [Mon, 1 Nov 2010 12:48:19 +0000 (12:48 +0000)]
From a user perspective the GNUmakefile improvements matter even less than the code cleanups, so move them to the end

13 years agoReduce indentation from 4 to 2 spaces for categorized change descriptions
Fabian Keil [Mon, 1 Nov 2010 12:47:43 +0000 (12:47 +0000)]
Reduce indentation from 4 to 2 spaces for categorized change descriptions

13 years agoImprove the wording of various change descriptions.
Fabian Keil [Mon, 1 Nov 2010 12:47:04 +0000 (12:47 +0000)]
Improve the wording of various change descriptions.

13 years agoAdd a license header.
Fabian Keil [Sun, 31 Oct 2010 13:29:31 +0000 (13:29 +0000)]
Add a license header.

13 years agoAdd support for the new ChangeLog format.
Fabian Keil [Sun, 31 Oct 2010 13:28:19 +0000 (13:28 +0000)]
Add support for the new ChangeLog format.

While the generated markup looks somewhat reasonable,
it hasn't actually been validated yet.

13 years agoFactor wrap_in_para_itemlist_markup() out of generate_markup().
Fabian Keil [Sun, 31 Oct 2010 13:27:03 +0000 (13:27 +0000)]
Factor wrap_in_para_itemlist_markup() out of generate_markup().

13 years agoStore entries in an array of hashes so we can later add the indentation level.
Fabian Keil [Sun, 31 Oct 2010 13:26:07 +0000 (13:26 +0000)]
Store entries in an array of hashes so we can later add the indentation level.

13 years agoFactor create_listitem_markup() out of generate_markup().
Fabian Keil [Sun, 31 Oct 2010 13:25:47 +0000 (13:25 +0000)]
Factor create_listitem_markup() out of generate_markup().

13 years agoReformat an entry, so the dash isn't the first non-whitespace character on a line.
Fabian Keil [Sun, 31 Oct 2010 13:25:22 +0000 (13:25 +0000)]
Reformat an entry, so the dash isn't the first non-whitespace character on a line.

13 years agoFix indentation for Privoxy-Log-Parser improvements.
Fabian Keil [Sun, 31 Oct 2010 13:24:58 +0000 (13:24 +0000)]
Fix indentation for Privoxy-Log-Parser improvements.

13 years agoRemove the 'into the logfile' part in two debug descriptions.
Fabian Keil [Sat, 30 Oct 2010 16:09:31 +0000 (16:09 +0000)]
Remove the 'into the logfile' part in two debug descriptions.

13 years agoDocument LOG_LEVEL_RECEIVED.
Fabian Keil [Sat, 30 Oct 2010 16:01:01 +0000 (16:01 +0000)]
Document LOG_LEVEL_RECEIVED.

13 years agoChange CODE_STATUS to stable.
Fabian Keil [Sat, 30 Oct 2010 15:57:50 +0000 (15:57 +0000)]
Change CODE_STATUS to stable.

13 years agoBump generated Firefox version to 3.6.12.
Fabian Keil [Sat, 30 Oct 2010 15:57:26 +0000 (15:57 +0000)]
Bump generated Firefox version to 3.6.12.

13 years agoBump generated Firefox version to 3.6.11.
Fabian Keil [Wed, 27 Oct 2010 19:58:45 +0000 (19:58 +0000)]
Bump generated Firefox version to 3.6.11.

13 years agoAdd changes in 3.0.17 stable.
Fabian Keil [Wed, 27 Oct 2010 19:57:02 +0000 (19:57 +0000)]
Add changes in 3.0.17 stable.

This is a draft that still needs polishing, also util/changelog2doc.pl
will require an update to deal with the formatting changes (if we keep them).

13 years agoAlso gather statistics for blocked requests.
Fabian Keil [Sat, 23 Oct 2010 08:01:54 +0000 (08:01 +0000)]
Also gather statistics for blocked requests.

13 years agoAlso gather statistics for fast redirections.
Fabian Keil [Sat, 23 Oct 2010 08:01:36 +0000 (08:01 +0000)]
Also gather statistics for fast redirections.

13 years agoBring back the icon with the binary flag set.
Fabian Keil [Sat, 23 Oct 2010 07:51:48 +0000 (07:51 +0000)]
Bring back the icon with the binary flag set.

Reported by daemonui in #3092454.

13 years agoRemove the icon so it can be added again with binary flag.
Fabian Keil [Sat, 23 Oct 2010 07:50:18 +0000 (07:50 +0000)]
Remove the icon so it can be added again with binary flag.

Reported by daemonui in #3092454.

13 years agoIn print_stats(), also provide the percentage of keep-alive offers the client accepted.
Fabian Keil [Sat, 16 Oct 2010 13:32:32 +0000 (13:32 +0000)]
In print_stats(), also provide the percentage of keep-alive offers the client accepted.

13 years agoDitch white-space added in the previous commit.
Fabian Keil [Sun, 10 Oct 2010 10:01:11 +0000 (10:01 +0000)]
Ditch white-space added in the previous commit.

13 years agoEnable the IPv6 code on Windows versions that support it.
Fabian Keil [Sun, 10 Oct 2010 09:58:12 +0000 (09:58 +0000)]
Enable the IPv6 code on Windows versions that support it.

Patch submitted by oCameLo in #2942729.

Time will tell if this causes problems for earlier Windows
versions, but if it does, it should be easy enough to fix.

13 years agoRemove parts of get_filter_function() that have been moved to content_requires_filter...
Fabian Keil [Tue, 14 Sep 2010 07:17:01 +0000 (07:17 +0000)]
Remove parts of get_filter_function() that have been moved to content_requires_filtering()

13 years agoAdd content_requires_filtering() as chat() not only needs to now if filtering is...
Fabian Keil [Tue, 14 Sep 2010 07:16:07 +0000 (07:16 +0000)]
Add content_requires_filtering() as chat() not only needs to now if filtering is enabled, but also if the filters can be executed.

13 years agoMake get_filter_function() static, now that it's no longer needed in jcc.c.
Fabian Keil [Tue, 14 Sep 2010 07:14:56 +0000 (07:14 +0000)]
Make get_filter_function() static, now that it's no longer needed in jcc.c.

13 years agoUse a boolean (int actually) instead of a pointer to figure out whether or not filter...
Fabian Keil [Tue, 14 Sep 2010 07:14:15 +0000 (07:14 +0000)]
Use a boolean (int actually) instead of a pointer to figure out whether or not filtering is enabled.

13 years agoRename execute_content_filter() to execute_content_filters() and remove the second...
Fabian Keil [Tue, 14 Sep 2010 07:13:10 +0000 (07:13 +0000)]
Rename execute_content_filter() to  execute_content_filters() and remove the second argument.

13 years agoAdd 80)
Fabian Keil [Tue, 14 Sep 2010 07:12:20 +0000 (07:12 +0000)]
Add 80)

Change FEATURE_EXTENDED_HOST_PATTERNS to support both
extended and vanilla host patterns at the same time.

13 years agoIn html_encode(), escape apostrophes so they can't mess up the embedded JavaScript.
Fabian Keil [Thu, 9 Sep 2010 21:00:25 +0000 (21:00 +0000)]
In html_encode(), escape apostrophes so they can't mess up the embedded JavaScript.

Reported by dg1727 in #3062296.

13 years agoIn listen_loop(), mention the socket on which we accepted the connection, not just...
Fabian Keil [Fri, 3 Sep 2010 17:40:37 +0000 (17:40 +0000)]
In listen_loop(), mention the socket on which we accepted the connection, not just the source IP address.

13 years agoAdd a range-requests tagger.
Fabian Keil [Fri, 3 Sep 2010 17:40:07 +0000 (17:40 +0000)]
Add a range-requests tagger.

13 years agoSlightly improve the explanation of why filtering may appear slower than it is.
Fabian Keil [Fri, 3 Sep 2010 17:39:37 +0000 (17:39 +0000)]
Slightly improve the explanation of why filtering may appear slower than it is.

13 years agoUse an enum for the filter type.
Fabian Keil [Fri, 3 Sep 2010 17:38:20 +0000 (17:38 +0000)]
Use an enum for the filter type.

13 years agoDisable URL statistics by default.
Fabian Keil [Sat, 28 Aug 2010 13:22:19 +0000 (13:22 +0000)]
Disable URL statistics by default.

13 years agoDisplay a warning if the URL statistics are incomplete or skipped.
Fabian Keil [Sat, 28 Aug 2010 13:22:00 +0000 (13:22 +0000)]
Display a warning if the URL statistics are incomplete or skipped.

13 years agoAdd a --url-statistics-threshold option.
Fabian Keil [Sat, 28 Aug 2010 13:21:24 +0000 (13:21 +0000)]
Add a --url-statistics-threshold option.

13 years agoAlso gather statistics for ressources, methods, and HTTP versions used by the client.
Fabian Keil [Sat, 28 Aug 2010 13:20:52 +0000 (13:20 +0000)]
Also gather statistics for ressources, methods, and HTTP versions used by the client.

13 years agoAdd the idea to add --compress and --decompress options.
Fabian Keil [Sat, 28 Aug 2010 13:20:23 +0000 (13:20 +0000)]
Add the idea to add --compress and --decompress options.

13 years agoFix a bug in handle_loglevel_header() where a 'scan: ' got lost.
Fabian Keil [Sat, 28 Aug 2010 12:55:47 +0000 (12:55 +0000)]
Fix a bug in handle_loglevel_header() where a 'scan: ' got lost.

13 years agoit helps if the new constants are included with the patch
Lee [Mon, 16 Aug 2010 21:39:19 +0000 (21:39 +0000)]
it helps if the new constants are included with the patch

13 years agoFeature Requests 3040263 :: Add "user.filter" to "Edit" menu
Lee [Sat, 14 Aug 2010 23:28:52 +0000 (23:28 +0000)]
Feature Requests 3040263 :: Add "user.filter" to "Edit" menu
- add an "Edit User Filters" menu item to the Privoxy Windows systray icon and
  change the "Edit Filters" menu item to "Edit Default Filters"

13 years agoAdd configure option --enable-large-file-support.
Fabian Keil [Thu, 29 Jul 2010 14:38:03 +0000 (14:38 +0000)]
Add configure option --enable-large-file-support.

It sets a few defines that are required by platforms
like GNU/Linux to support files larger then 2GB.

13 years agoIn the error paths in listen_loop(), we now have to freez csp_list instead of csp.
Fabian Keil [Thu, 29 Jul 2010 14:32:08 +0000 (14:32 +0000)]
In the error paths in listen_loop(), we now have to freez csp_list instead of csp.

Regression introduced in v1.324.

13 years agoAccept and higlight: Rejecting connection from 178.63.152.227. Maximum number of...
Fabian Keil [Thu, 29 Jul 2010 14:27:43 +0000 (14:27 +0000)]
Accept and higlight: Rejecting connection from 178.63.152.227. Maximum number of connections reached.

13 years agoFix a cast.
Fabian Keil [Mon, 26 Jul 2010 12:11:51 +0000 (12:11 +0000)]
Fix a cast.

13 years agoRename LOG_LEVEL_LOG to the more descriptive LOG_LEVEL_WRITING.
Fabian Keil [Mon, 26 Jul 2010 11:30:09 +0000 (11:30 +0000)]
Rename LOG_LEVEL_LOG to the more descriptive LOG_LEVEL_WRITING.

13 years agoAccept and ignore LOG_LEVEL_RECEIVED.
Fabian Keil [Mon, 26 Jul 2010 11:28:52 +0000 (11:28 +0000)]
Accept and ignore LOG_LEVEL_RECEIVED.

13 years agoAdd LOG_LEVEL_RECEIVED to log the not-yet-parsed data received.
Fabian Keil [Mon, 26 Jul 2010 11:28:11 +0000 (11:28 +0000)]
Add LOG_LEVEL_RECEIVED to log the not-yet-parsed data received.

This should make debugging various parsing issues a lot easier.

13 years agoIn write_socket(), also log the socket we're writing to.
Fabian Keil [Mon, 26 Jul 2010 11:26:26 +0000 (11:26 +0000)]
In write_socket(), also log the socket we're writing to.

13 years agoIn log_error(), assert that escaped characters get logged completely or not at all.
Fabian Keil [Mon, 26 Jul 2010 11:24:34 +0000 (11:24 +0000)]
In log_error(), assert that escaped characters get logged completely or not at all.

13 years agoIn log_error(), assert that ival and sval have reasonable values. There's no reason...
Fabian Keil [Mon, 26 Jul 2010 11:21:47 +0000 (11:21 +0000)]
In log_error(), assert that ival and sval have reasonable values. There's no reason not to abort() if they don't.

13 years agoRemove two obsolete comments in log_error().
Fabian Keil [Mon, 26 Jul 2010 11:20:53 +0000 (11:20 +0000)]
Remove two obsolete comments in log_error().

13 years agoIn log_error(), constify warning[].
Fabian Keil [Mon, 26 Jul 2010 11:20:17 +0000 (11:20 +0000)]
In log_error(), constify warning[].

13 years agoIn log_error(), log as much of %N "strings" as the buffer allows.
Fabian Keil [Mon, 26 Jul 2010 11:19:31 +0000 (11:19 +0000)]
In log_error(), log as much of %N "strings" as the buffer allows.

Previously we'd stop at the first nul byte which is pretty useless.

While at it, replace non-printable characters in %N "strings" with
their hex value so the result can't span multiple lines and \r's
don't cause a mess.

13 years agoFix spelling.
Fabian Keil [Thu, 22 Jul 2010 14:56:33 +0000 (14:56 +0000)]
Fix spelling.

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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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().

13 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().

13 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.

13 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.

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

13 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.

13 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.

13 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'.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

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

13 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

13 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?

13 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