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.
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.
Fabian Keil [Sun, 10 Oct 2010 10:01:11 +0000 (10:01 +0000)]
Ditch white-space added in the previous commit.
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.
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()
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.
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.
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.
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.
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.
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.
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.
Fabian Keil [Fri, 3 Sep 2010 17:40:07 +0000 (17:40 +0000)]
Add a range-requests tagger.
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.
Fabian Keil [Fri, 3 Sep 2010 17:38:20 +0000 (17:38 +0000)]
Use an enum for the filter type.
Fabian Keil [Sat, 28 Aug 2010 13:22:19 +0000 (13:22 +0000)]
Disable URL statistics by default.
Fabian Keil [Sat, 28 Aug 2010 13:22:00 +0000 (13:22 +0000)]
Display a warning if the URL statistics are incomplete or skipped.
Fabian Keil [Sat, 28 Aug 2010 13:21:24 +0000 (13:21 +0000)]
Add a --url-statistics-threshold option.
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.
Fabian Keil [Sat, 28 Aug 2010 13:20:23 +0000 (13:20 +0000)]
Add the idea to add --compress and --decompress options.
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.
Lee [Mon, 16 Aug 2010 21:39:19 +0000 (21:39 +0000)]
it helps if the new constants are included with the patch
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"
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.
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.
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.
Fabian Keil [Mon, 26 Jul 2010 12:11:51 +0000 (12:11 +0000)]
Fix a cast.
Fabian Keil [Mon, 26 Jul 2010 11:30:09 +0000 (11:30 +0000)]
Rename LOG_LEVEL_LOG to the more descriptive LOG_LEVEL_WRITING.
Fabian Keil [Mon, 26 Jul 2010 11:28:52 +0000 (11:28 +0000)]
Accept and ignore LOG_LEVEL_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.
Fabian Keil [Mon, 26 Jul 2010 11:26:26 +0000 (11:26 +0000)]
In write_socket(), also log the socket we're writing to.
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.
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.
Fabian Keil [Mon, 26 Jul 2010 11:20:53 +0000 (11:20 +0000)]
Remove two obsolete comments in log_error().
Fabian Keil [Mon, 26 Jul 2010 11:20:17 +0000 (11:20 +0000)]
In log_error(), constify warning[].
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.
Fabian Keil [Thu, 22 Jul 2010 14:56:33 +0000 (14:56 +0000)]
Fix spelling.
Fabian Keil [Thu, 22 Jul 2010 14:52:30 +0000 (14:52 +0000)]
Bump copyright year.
Fabian Keil [Thu, 22 Jul 2010 14:51:59 +0000 (14:51 +0000)]
Add the --statistics option to the SYNOPSIS.
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.
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.
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.
Fabian Keil [Wed, 21 Jul 2010 14:40:09 +0000 (14:40 +0000)]
Accept and ignore: Continue hack in da house.
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.
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.
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.
Fabian Keil [Wed, 21 Jul 2010 14:30:40 +0000 (14:30 +0000)]
Garbage-collect request_contains_null_bytes().
Fabian Keil [Wed, 21 Jul 2010 14:29:59 +0000 (14:29 +0000)]
Ditch redundant code in unload_configfile().
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.
Fabian Keil [Mon, 5 Jul 2010 17:29:18 +0000 (17:29 +0000)]
Fix a bunch of anchors that used underscores instead of dashes.
Lee [Fri, 18 Jun 2010 14:49:33 +0000 (14:49 +0000)]
block another omniture tracking domain
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.
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.
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'.
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.
Fabian Keil [Sun, 13 Jun 2010 12:27:39 +0000 (12:27 +0000)]
In xtoi(), limit the scope of the variable d2.
Fabian Keil [Sun, 13 Jun 2010 12:27:03 +0000 (12:27 +0000)]
In main(), limit the scope of the variable pid.
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.
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.
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.
Fabian Keil [Sun, 13 Jun 2010 12:24:49 +0000 (12:24 +0000)]
Fix comment typo.
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
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?
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
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.
Lee [Wed, 26 May 2010 23:01:47 +0000 (23:01 +0000)]
create a log record when reading an action, filter or trust file.
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().
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.
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.
Fabian Keil [Sun, 23 May 2010 12:11:18 +0000 (12:11 +0000)]
Enable user.filter by default. Suggested by David White in #
3001830.
Fabian Keil [Sun, 23 May 2010 11:54:54 +0000 (11:54 +0000)]
Block .sitestat.com/. Reported by johnd16 in #
3002725.
Fabian Keil [Sun, 23 May 2010 11:54:31 +0000 (11:54 +0000)]
Block .atemda.com/. Reported by johnd16 in #
3002723.
Fabian Keil [Sun, 23 May 2010 11:53:57 +0000 (11:53 +0000)]
Block js.adlink.net/. Reported by johnd16 in #
3002720.
Fabian Keil [Sun, 23 May 2010 11:53:35 +0000 (11:53 +0000)]
Add missing protocol in block tests.
Fabian Keil [Sun, 23 May 2010 11:20:48 +0000 (11:20 +0000)]
Block .analytics.yahoo.com/. Reported by johnd16 in #
3002713.
Lee [Sat, 22 May 2010 16:50:07 +0000 (16:50 +0000)]
fix for ijbswa-Support Requests-
3001830: Activate user.filter by default
Fabian Keil [Sat, 1 May 2010 18:23:00 +0000 (18:23 +0000)]
Fix regression test for metrics.torproject.org.
Fabian Keil [Sat, 1 May 2010 18:22:13 +0000 (18:22 +0000)]
Block sb.scorecardresearch.com, too.
Reported by dg1727 in #
2992652.
Fabian Keil [Sat, 1 May 2010 18:21:30 +0000 (18:21 +0000)]
Explicitly mention how to match any URL.
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().
Fabian Keil [Sat, 1 May 2010 18:19:56 +0000 (18:19 +0000)]
Factor prepare_csp_for_next_request() out of serve().
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.
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.
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.
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.
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.
Fabian Keil [Mon, 12 Apr 2010 16:43:21 +0000 (16:43 +0000)]
Add: 79) Evaluate pcre alternatives.
Fabian Keil [Mon, 12 Apr 2010 16:42:54 +0000 (16:42 +0000)]
Add: 78) Allow to optionally use pcre's DFA algorithm.
Lee [Sat, 10 Apr 2010 18:34:17 +0000 (18:34 +0000)]
Allow metrics.torproject.org
Fabian Keil [Sat, 3 Apr 2010 13:23:28 +0000 (13:23 +0000)]
Two minor style fixes for block_url().
Fabian Keil [Sat, 3 Apr 2010 13:22:56 +0000 (13:22 +0000)]
Ditch code in block_url() that has been dead for years.
Fabian Keil [Sat, 3 Apr 2010 13:21:53 +0000 (13:21 +0000)]
Fix the tense in a comment in send_crunch_response().
Fabian Keil [Sat, 3 Apr 2010 13:21:30 +0000 (13:21 +0000)]
Improve chat()'s description a bit.
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.
Fabian Keil [Sun, 28 Mar 2010 17:35:09 +0000 (17:35 +0000)]
Mention that the internal PCRE version is outdated.
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.
Fabian Keil [Sat, 27 Mar 2010 18:48:38 +0000 (18:48 +0000)]
Tag CSS and image requests with cautious and medium settings, too.
Fabian Keil [Sat, 27 Mar 2010 18:30:33 +0000 (18:30 +0000)]
Bump BROWSER_FOO variables for Firefox 3.6.2.
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.
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