privoxy.git
11 years agoRegenerated with new contributors
Fabian Keil [Thu, 10 Jan 2013 11:40:01 +0000 (11:40 +0000)]
Regenerated with new contributors

11 years agoAdd new contributors since 3.0.19
Fabian Keil [Thu, 10 Jan 2013 11:39:05 +0000 (11:39 +0000)]
Add new contributors since 3.0.19

11 years agoRebuild for 3.0.20 beta
Fabian Keil [Thu, 10 Jan 2013 11:05:49 +0000 (11:05 +0000)]
Rebuild for 3.0.20 beta

11 years agoRebuild with utf-8 encoding
Fabian Keil [Thu, 10 Jan 2013 11:05:17 +0000 (11:05 +0000)]
Rebuild with utf-8 encoding

11 years agoAdd the DNT header to the client-header-order example
Fabian Keil [Thu, 10 Jan 2013 11:04:45 +0000 (11:04 +0000)]
Add the DNT header to the client-header-order example

11 years agoStop pretending that lynx and links are supported for the documentation
Fabian Keil [Thu, 10 Jan 2013 11:03:58 +0000 (11:03 +0000)]
Stop pretending that lynx and links are supported for the documentation

11 years agoChange WDUMP to generate ASCII
Fabian Keil [Thu, 10 Jan 2013 11:03:31 +0000 (11:03 +0000)]
Change WDUMP to generate ASCII

Add WDUMP_UTF8 to allow UTF-8 in the AUTHORS file so the names are right.

11 years agoFix syntax in the client-header-order example
Fabian Keil [Wed, 9 Jan 2013 15:19:47 +0000 (15:19 +0000)]
Fix syntax in the client-header-order example

11 years agoBump copyright
Fabian Keil [Wed, 9 Jan 2013 15:08:51 +0000 (15:08 +0000)]
Bump copyright

11 years agoManual config fixes
Fabian Keil [Wed, 9 Jan 2013 15:07:39 +0000 (15:07 +0000)]
Manual config fixes

Three comments got lost in translation and a few line
breaks got ugly.

11 years agoRenegerated config without the manual fixes
Fabian Keil [Wed, 9 Jan 2013 15:07:21 +0000 (15:07 +0000)]
Renegerated config without the manual fixes

11 years agoLet the config-file target optimistically update the original
Fabian Keil [Wed, 9 Jan 2013 15:06:30 +0000 (15:06 +0000)]
Let the config-file target optimistically update the original

Most of the issues are fixed now and it makes
diffing with git easier.

11 years agoPrevent completely empty lines and try to unfold unintentional line breaks
Fabian Keil [Wed, 9 Jan 2013 15:05:59 +0000 (15:05 +0000)]
Prevent completely empty lines and try to unfold unintentional line breaks

11 years agoAdd a comment to describe what this script is for
Fabian Keil [Wed, 9 Jan 2013 15:05:38 +0000 (15:05 +0000)]
Add a comment to describe what this script is for

11 years agoDitch a pointless '-r' passed to rm to delete files
Fabian Keil [Wed, 9 Jan 2013 15:05:20 +0000 (15:05 +0000)]
Ditch a pointless '-r' passed to rm to delete files

11 years agoConvince w3m to use ASCII dashes
Fabian Keil [Wed, 9 Jan 2013 15:04:41 +0000 (15:04 +0000)]
Convince w3m to use ASCII dashes

11 years agoLet w3m itself do the line wrapping for the config file
Fabian Keil [Wed, 9 Jan 2013 15:04:21 +0000 (15:04 +0000)]
Let w3m itself do the line wrapping for the config file

It works better than fmt as it can honour pre tags causing
less unintentional line breaks.

11 years agoBump copyright for the config file
Fabian Keil [Wed, 9 Jan 2013 15:03:22 +0000 (15:03 +0000)]
Bump copyright for the config file

11 years agoBump user manual copyright
Fabian Keil [Wed, 9 Jan 2013 15:03:06 +0000 (15:03 +0000)]
Bump user manual copyright

11 years agoRemove bogus comment hashes in the client-header-order section
Fabian Keil [Wed, 9 Jan 2013 15:02:47 +0000 (15:02 +0000)]
Remove bogus comment hashes in the client-header-order section

The config-test target already takes care of adding them
which caused duplicates.

11 years agoRegenerate the HTML version of the man page for 3.0.20 beta
Fabian Keil [Sun, 6 Jan 2013 18:51:53 +0000 (18:51 +0000)]
Regenerate the HTML version of the man page for 3.0.20 beta

There are a bunch of white-space changes because apparently
this is the first time the generated mess has been filtered
with the current tidy settings.

11 years agoRebuild man page for 3.0.20 beta
Fabian Keil [Sun, 6 Jan 2013 18:50:10 +0000 (18:50 +0000)]
Rebuild man page for 3.0.20 beta

11 years agoFix comment typos
Fabian Keil [Sun, 6 Jan 2013 18:19:24 +0000 (18:19 +0000)]
Fix comment typos

11 years agoBump PRT_VERSION and copyright
Fabian Keil [Sun, 6 Jan 2013 18:16:10 +0000 (18:16 +0000)]
Bump PRT_VERSION and copyright

11 years agoAdd an 'Overwrite condition' directive to skip any matching tests before it
Fabian Keil [Sun, 6 Jan 2013 18:15:27 +0000 (18:15 +0000)]
Add an 'Overwrite condition' directive to skip any matching tests before it

As it has a global scope, using it is more convenient
than clowning around with the Ignore directive.

11 years agoDocument the Ignore directive
Fabian Keil [Sun, 6 Jan 2013 18:14:58 +0000 (18:14 +0000)]
Document the Ignore directive

11 years agoInclude the Privoxy version in the output
Fabian Keil [Sun, 6 Jan 2013 18:14:44 +0000 (18:14 +0000)]
Include the Privoxy version in the output

11 years agoRemove the "Copyright" line from print_version()
Fabian Keil [Sun, 6 Jan 2013 18:14:17 +0000 (18:14 +0000)]
Remove the "Copyright" line from print_version()

When using --help, every line of screen space matters and thus
shouldn't be wasted on things the user doesn't care about.

Making me look less like a prima donna is also a plus.

11 years agoAccept and highlight: Multiple Content-Type headers detected. Removing and ignoring...
Fabian Keil [Sun, 6 Jan 2013 18:11:51 +0000 (18:11 +0000)]
Accept and highlight: Multiple Content-Type headers detected. Removing and ignoring: Content-Type: text/html

11 years agoBumped entities for 3.0.20 beta
Fabian Keil [Sun, 6 Jan 2013 13:25:00 +0000 (13:25 +0000)]
Bumped entities for 3.0.20 beta

11 years agoRegenerated still incomplete HTML documentation for 3.0.20 beta
Fabian Keil [Sun, 6 Jan 2013 11:26:16 +0000 (11:26 +0000)]
Regenerated still incomplete HTML documentation for 3.0.20 beta

11 years agoSet entities to 3.0.20 beta
Fabian Keil [Sun, 6 Jan 2013 11:25:52 +0000 (11:25 +0000)]
Set entities to 3.0.20 beta

11 years agoDeclare the code 'beta' in preparation for the upcomming release
Fabian Keil [Sun, 6 Jan 2013 11:06:23 +0000 (11:06 +0000)]
Declare the code 'beta' in preparation for the upcomming release

11 years agoEnable tolerate-pipelining for the beta as discussed on ijbswa@
Fabian Keil [Sun, 6 Jan 2013 11:05:37 +0000 (11:05 +0000)]
Enable tolerate-pipelining for the beta as discussed on ijbswa@

11 years agobump copyright date
Lee [Sat, 5 Jan 2013 23:50:35 +0000 (23:50 +0000)]
bump copyright date

11 years agoadd missing "</sect3>" lines
Lee [Sat, 5 Jan 2013 22:56:31 +0000 (22:56 +0000)]
add missing "</sect3>" lines

11 years agoReword #66 to make more sense
Fabian Keil [Sat, 5 Jan 2013 18:39:35 +0000 (18:39 +0000)]
Reword #66 to make more sense

11 years agoClarify #65
Fabian Keil [Sat, 5 Jan 2013 18:39:19 +0000 (18:39 +0000)]
Clarify #65

11 years agoRemove #49
Fabian Keil [Sat, 5 Jan 2013 18:38:52 +0000 (18:38 +0000)]
Remove #49

The consensus is that we enable keep-alive by default in future
releases and thus NTLM authentication is expected to work out of
the box. curl's test suite seems to confirm this.

11 years agoRemove #4 as it's pretty obvious
Fabian Keil [Sat, 5 Jan 2013 18:38:34 +0000 (18:38 +0000)]
Remove #4 as it's pretty obvious

The warnings it originally referred to appear to have beem harmless
compiler issues and no longer appear with a more recent compiler.

11 years agoMention curl's test suite as an alternative to implement #1
Fabian Keil [Sat, 5 Jan 2013 18:38:11 +0000 (18:38 +0000)]
Mention curl's test suite as an alternative to implement #1

11 years agoRemove #97 as 'optimistic data' support has been committed a while ago
Fabian Keil [Sat, 5 Jan 2013 18:37:52 +0000 (18:37 +0000)]
Remove #97 as 'optimistic data' support has been committed a while ago

11 years agoAdjust #88 to clarify that less forks would also be nice
Fabian Keil [Sat, 5 Jan 2013 18:37:35 +0000 (18:37 +0000)]
Adjust #88 to clarify that less forks would also be nice

11 years agoIn server_content_type(), only remove duplicated headers with filters enabled
Fabian Keil [Fri, 4 Jan 2013 12:20:31 +0000 (12:20 +0000)]
In server_content_type(), only remove duplicated headers with filters enabled

Otherwise it doesn't matter and the user might not want it.

While at it, downgrade the removal message to LOG_LEVEL_HEADER
to clarify that it's not an error in Privoxy and is unlikely
to cause any problems in general.

Anonymously reported in #3599335.

11 years agoRemove an incorrect assertion in server_content_type()
Fabian Keil [Fri, 4 Jan 2013 12:19:47 +0000 (12:19 +0000)]
Remove an incorrect assertion in server_content_type()

While it was supposed "to see if we already parsed another
Content-Type header" it actually only verified that at least
one Content-Type headers exists.

This is guaranteed to be true as otherwise the function
wouldn't be executed by sed().

11 years agoRevert the previous commit 1.422 for now
Fabian Keil [Thu, 3 Jan 2013 15:25:08 +0000 (15:25 +0000)]
Revert the previous commit 1.422 for now

The rough consensus on ijbswa@ is that it probably would
cause more problems than it solves and should be rethought
after the next stable release.

11 years agoDo not try to drain a socket when there is no data waiting
Fabian Keil [Tue, 1 Jan 2013 22:11:08 +0000 (22:11 +0000)]
Do not try to drain a socket when there is no data waiting

... at the time drain_and_close_socket() is called.

As Lee noticed it causes problems on Windows, most likely because
read_socket() is blocking which isn't even wrong and could also
happen on other platforms.

11 years agoRemove a duplicated 'const' that should have been removed in 1.24
Fabian Keil [Thu, 27 Dec 2012 15:48:53 +0000 (15:48 +0000)]
Remove a duplicated 'const' that should have been removed in 1.24

11 years agoInclude the protocol when logging http:// requests with 'debug 1'
Fabian Keil [Thu, 27 Dec 2012 15:48:01 +0000 (15:48 +0000)]
Include the protocol when logging  requests with 'debug 1'

Suggested by Martin Olsson in #3596294.

11 years agoGrammar fix for the previous commit
Fabian Keil [Mon, 24 Dec 2012 15:53:26 +0000 (15:53 +0000)]
Grammar fix for the previous commit

11 years agoImprove the --statistics performance by skipping sanity checks
Fabian Keil [Mon, 24 Dec 2012 15:37:39 +0000 (15:37 +0000)]
Improve the --statistics performance by skipping sanity checks

... for input that shouldn't affect the results anyway.
In my non-scientific benchmarks this reduces the runtime by about 45%.

Add a --strict-checks option that enables some of the checks again,
just in case anybody cares.

Hohoho.

11 years agoBump copyright
Fabian Keil [Mon, 24 Dec 2012 15:36:52 +0000 (15:36 +0000)]
Bump copyright

11 years agoAccept and highlight: Client request 8 has been pipelined on socket 7 and the socket...
Fabian Keil [Thu, 20 Dec 2012 17:03:10 +0000 (17:03 +0000)]
Accept and highlight: Client request 8 has been pipelined on socket 7 and the socket is still alive.

11 years agoAccept: There better be a request body.
Fabian Keil [Thu, 20 Dec 2012 17:02:45 +0000 (17:02 +0000)]
Accept: There better be a request body.

11 years agoAccept and highlight: Shifting 360 pipelined bytes by 360 bytes
Fabian Keil [Thu, 20 Dec 2012 17:02:30 +0000 (17:02 +0000)]
Accept and highlight: Shifting 360 pipelined bytes by 360 bytes

11 years agoGet the test for the '/.*download' pattern working
Fabian Keil [Wed, 19 Dec 2012 11:45:03 +0000 (11:45 +0000)]
Get the test for the '/.*download' pattern working

11 years agoFix an URL that was lacking the protocol
Fabian Keil [Wed, 19 Dec 2012 11:44:35 +0000 (11:44 +0000)]
Fix an URL that was lacking the protocol

Privoxy-Regression-Test currently doesn't care as curl
doesn't either, but that's an implementation detail and
may change in the future.

While at it, shorten the path a bit.

11 years agoAdd a domain-specific unblock pattern to resolve actionsfile feedback #3413827 (hotma...
Ian Silvester [Wed, 19 Dec 2012 02:22:23 +0000 (02:22 +0000)]
Add a domain-specific unblock pattern to resolve actionsfile feedback #3413827 (hotmail.com not working) submitted by David Bo

11 years agoAdd an unblock pattern to resolve actionsfile feedback #3498129 submitted by Steven...
Ian Silvester [Wed, 19 Dec 2012 02:12:16 +0000 (02:12 +0000)]
Add an unblock pattern to resolve actionsfile feedback #3498129 submitted by Steven Kolins, plus correct one comment typo

11 years agoAdd two unblock patterns for popup radio and TV players
Fabian Keil [Mon, 17 Dec 2012 12:36:53 +0000 (12:36 +0000)]
Add two unblock patterns for popup radio and TV players

Submitted by Adam Piggott in #3596089.

11 years agoRemove an incorrect sentence in the toggle section
Fabian Keil [Sun, 16 Dec 2012 11:06:40 +0000 (11:06 +0000)]
Remove an incorrect sentence in the toggle section

The toggle state doesn't affect whether or not the windows
version uses the tray icon and having to toggle Privoxy off
to not show the icon makes no sense (to me) anyway.

Reported by Zeno Kugy in #3596395.

11 years agoRemove a useless comment in the toggle section
Fabian Keil [Sun, 16 Dec 2012 11:06:08 +0000 (11:06 +0000)]
Remove a useless comment in the toggle section

11 years agoBlock imp.double.net/
Fabian Keil [Sun, 16 Dec 2012 10:49:11 +0000 (10:49 +0000)]
Block imp.double.net/

Reported by David Bo in #3070411.

11 years agoBlock gm-link.com/ whis is used for email tracking
Fabian Keil [Sat, 15 Dec 2012 13:01:39 +0000 (13:01 +0000)]
Block gm-link.com/ whis is used for email tracking

Reported by David Bo in #1812733.

11 years agoVerify that requests to "bwp." are blocked
Fabian Keil [Sat, 15 Dec 2012 13:01:22 +0000 (13:01 +0000)]
Verify that requests to "bwp." are blocked

URL taken from #1736879 submitted by Francois Marier.

11 years agoBump copyright
Fabian Keil [Sat, 15 Dec 2012 13:00:59 +0000 (13:00 +0000)]
Bump copyright

11 years agoStop pretending that updated versions of this file are released on their own
Fabian Keil [Sat, 15 Dec 2012 13:00:49 +0000 (13:00 +0000)]
Stop pretending that updated versions of this file are released on their own

11 years agoBlock /.*bannerid=
Fabian Keil [Fri, 14 Dec 2012 11:09:43 +0000 (11:09 +0000)]
Block /.*bannerid=

Reported by Adam Piggott in #2975779.

11 years agoBlock cltomedia.info/delivery/ and .adexprt.com/
Fabian Keil [Fri, 14 Dec 2012 10:59:50 +0000 (10:59 +0000)]
Block cltomedia.info/delivery/ and .adexprt.com/

Anonymously reported in #2965254.

11 years agoBlock requests to de17a.com/
Fabian Keil [Fri, 14 Dec 2012 10:15:17 +0000 (10:15 +0000)]
Block requests to de17a.com/

Reported by David Bo in #3061472.

11 years agoBlock oskar.tradera.com/
Fabian Keil [Fri, 14 Dec 2012 10:14:51 +0000 (10:14 +0000)]
Block oskar.tradera.com/

Reported by David Bo in #3060596.

11 years agoBlock /scripts/webtrends\.js
Fabian Keil [Wed, 12 Dec 2012 15:16:28 +0000 (15:16 +0000)]
Block /scripts/webtrends\.js

Reported by johnd16 in #3002729.

11 years agoBlock requests for pool.*.adhese.com/
Fabian Keil [Wed, 12 Dec 2012 14:29:05 +0000 (14:29 +0000)]
Block requests for pool.*.adhese.com/

Reported by johnd16 in #3002716.

11 years agoUpdate path pattern for Coremetrics and add tests
Fabian Keil [Wed, 12 Dec 2012 14:15:23 +0000 (14:15 +0000)]
Update path pattern for Coremetrics and add tests

Pattern and URLs submitted by Adam Piggott #3168443.

11 years agoEnable +fast-redirects{check-decoded-url} for tr.anp.se/
Fabian Keil [Wed, 12 Dec 2012 14:03:35 +0000 (14:03 +0000)]
Enable +fast-redirects{check-decoded-url} for tr.anp.se/

Reported by David Bo in #3268832.

11 years agoUnblock .conrad.se/newsletter/banners/
Fabian Keil [Wed, 12 Dec 2012 13:25:07 +0000 (13:25 +0000)]
Unblock .conrad.se/newsletter/banners/

Reported by David Bo in #3413824.

11 years agoBlock requests for .tynt.com/
Fabian Keil [Wed, 12 Dec 2012 13:24:51 +0000 (13:24 +0000)]
Block requests for .tynt.com/

Reported by Dan Stahlke in #3421767.

11 years agoUnblock .bbci.co.uk/radio/
Fabian Keil [Wed, 12 Dec 2012 13:24:26 +0000 (13:24 +0000)]
Unblock .bbci.co.uk/radio/

Reported by Adam Piggott in #3569603.

11 years agoBlock requests to service.maxymiser.net/
Fabian Keil [Wed, 12 Dec 2012 12:56:50 +0000 (12:56 +0000)]
Block requests to service.maxymiser.net/

Reported by johnd16 in #3118401 (with a previous URL).

11 years agoDisable fast-redirects for Google's "let's pretend your computer is infected" page
Fabian Keil [Wed, 12 Dec 2012 12:56:00 +0000 (12:56 +0000)]
Disable fast-redirects for Google's "let's pretend your computer is infected" page

11 years agoLet fatal_error() write to the logfile right away
Fabian Keil [Sun, 9 Dec 2012 12:28:14 +0000 (12:28 +0000)]
Let fatal_error() write to the logfile right away

.. before showing the Windows-specific error message
which blocks until the user acknowledges it, thus
complicating automatic error detection.

Reported by Adriaan in #3593603.

11 years agoOptionally let parse_header_time() sanity check strptime() results before trusting...
Fabian Keil [Sun, 9 Dec 2012 12:27:01 +0000 (12:27 +0000)]
Optionally let parse_header_time() sanity check strptime() results before trusting them

Broken strptime() implementations have caused problems in the
past and the most recent offender seems to be FreeBSD's libc:
http://www.freebsd.org/cgi/query-pr.cgi?pr=173421

11 years agoDowngrade a log message in change_request_destination()
Fabian Keil [Fri, 7 Dec 2012 12:50:37 +0000 (12:50 +0000)]
Downgrade a log message in change_request_destination()

11 years agoFix warning on Debian GNU/Linux
Fabian Keil [Fri, 7 Dec 2012 12:50:17 +0000 (12:50 +0000)]
Fix warning on Debian GNU/Linux

11 years agoCorrect a return code in compile_host_pattern()
Fabian Keil [Fri, 7 Dec 2012 12:49:47 +0000 (12:49 +0000)]
Correct a return code in compile_host_pattern()

11 years agoReject URLs with invalid port
Fabian Keil [Fri, 7 Dec 2012 12:49:20 +0000 (12:49 +0000)]
Reject URLs with invalid port

Previously they were parsed incorrectly and characters between
the port number and the first slash were silently dropped as
shown by curl test 187.

11 years agoRebuild docs for +limit-cookie-lifetime{} and forward-socks5t
Fabian Keil [Fri, 7 Dec 2012 12:48:23 +0000 (12:48 +0000)]
Rebuild docs for +limit-cookie-lifetime{} and forward-socks5t

11 years agoDitch $Log$ which broke the dok target due to Docbook being awesome
Fabian Keil [Fri, 7 Dec 2012 12:47:48 +0000 (12:47 +0000)]
Ditch $Log$ which broke the dok target due to Docbook being awesome

11 years agoDocument forward-socks5t
Fabian Keil [Fri, 7 Dec 2012 12:46:32 +0000 (12:46 +0000)]
Document forward-socks5t

11 years agoAccept and highlight: Optimistically sending 318 bytes of client headers intended...
Fabian Keil [Fri, 7 Dec 2012 12:46:04 +0000 (12:46 +0000)]
Accept and highlight: Optimistically sending 318 bytes of client headers intended for privoxy.org

11 years agoAdd support for Tor's optimistic-data SOCKS extension
Fabian Keil [Fri, 7 Dec 2012 12:45:20 +0000 (12:45 +0000)]
Add support for Tor's optimistic-data SOCKS extension

.. which can reduce the latency for requests on newly
created connections.

Currently only the headers are sent optimistically and
only if the client request has already been read completely
which rules out requests with large bodies.

11 years agoAdd support for chunk-encoded client request bodies
Fabian Keil [Fri, 7 Dec 2012 12:43:55 +0000 (12:43 +0000)]
Add support for chunk-encoded client request bodies

It's simplistic and requires the whole request body to be buffered
before the request is forwarded. If the buffer limit is reached,
the request is rejected.

Previously chunk-encoded request bodies weren't guaranteed
to be forwarded correctly, so this can also be considered a
bug fix although chunk-encoded request bodies aren't commonly
used in the real world.

11 years agoMake any_loaded_file_changed() more reliable
Fabian Keil [Fri, 7 Dec 2012 12:43:05 +0000 (12:43 +0000)]
Make any_loaded_file_changed() more reliable

Using the timestamps from csp->config->config_file_list
doesn't always work as they are only updated when the
config file is changed.

If an action or filter file is reloaded the timestamps
aren't updated so any_loaded_file_changed() continued
to report file changes.

11 years agoUse strdup_or_die() instead of strdup()
Fabian Keil [Thu, 29 Nov 2012 09:57:39 +0000 (09:57 +0000)]
Use strdup_or_die() instead of strdup()

The strings are known to be short.

11 years agoRemove remnant of FEATURE_COOKIE_JAR
Fabian Keil [Thu, 29 Nov 2012 09:53:28 +0000 (09:53 +0000)]
Remove remnant of FEATURE_COOKIE_JAR

11 years agoAdd #108: Allow to use a somewhat random string intead of PRIVOXY-FORCE
Fabian Keil [Sat, 24 Nov 2012 14:14:37 +0000 (14:14 +0000)]
Add #108: Allow to use a somewhat random string intead of PRIVOXY-FORCE

According to #2963658 this was already on "the TODO list",
but apparently not on this one.

11 years agoAdd #107: Support more pcrs variables
Fabian Keil [Sat, 24 Nov 2012 14:13:58 +0000 (14:13 +0000)]
Add #107: Support more pcrs variables

11 years agoAdd Rick Sykes
Fabian Keil [Sat, 24 Nov 2012 14:12:32 +0000 (14:12 +0000)]
Add Rick Sykes

He suggested something like the +limit-cookie-lifetime{} action in #1049575.

11 years agoFix sorting
Fabian Keil [Sat, 24 Nov 2012 14:11:09 +0000 (14:11 +0000)]
Fix sorting

11 years agoSet the SERVER_CONTENT_LENGTH_SET flag after creating a new Content-Length header
Fabian Keil [Sat, 24 Nov 2012 14:09:11 +0000 (14:09 +0000)]
Set the SERVER_CONTENT_LENGTH_SET flag after creating a new Content-Length header

This allows to keep the client connection alive after
filtering a chunk-encoded response.