privoxy.git
9 years agoAdd LOG_LEVEL_ACTIONS to log the applying actions
Fabian Keil [Fri, 27 Jul 2012 17:39:57 +0000 (17:39 +0000)]
Add LOG_LEVEL_ACTIONS to log the applying actions

Unlike in the "Final results", the effect of tags is taken into account.

9 years agoAdd #106: actionlist.h should be embedded in a way that causes less text bloat
Fabian Keil [Fri, 27 Jul 2012 17:37:43 +0000 (17:37 +0000)]
Add #106: actionlist.h should be embedded in a way that causes less text bloat

9 years agoLet get_percentage() show 0 of x as 0% even if x is 0 as well
Fabian Keil [Fri, 27 Jul 2012 17:37:22 +0000 (17:37 +0000)]
Let get_percentage() show 0 of x as 0% even if x is 0 as well

9 years agoAccept and ignore: Enlisting (sorted|left-over) header ...
Fabian Keil [Fri, 27 Jul 2012 17:37:00 +0000 (17:37 +0000)]
Accept and ignore: Enlisting (sorted|left-over) header ...

9 years agoImplement the client-header-order directive
Fabian Keil [Fri, 27 Jul 2012 17:36:06 +0000 (17:36 +0000)]
Implement the client-header-order directive

It can be used to forward client headers in a different
order than they arrived.

9 years agoIn serve(), log the client socket and its condition before closing it
Fabian Keil [Fri, 27 Jul 2012 17:31:10 +0000 (17:31 +0000)]
In serve(), log the client socket and its condition before closing it

This makes it more obvious that the socket actually gets closed
and should help when diagnosing problems like #3464439.

9 years agoAdd debug_level_is_enabled()
Fabian Keil [Fri, 27 Jul 2012 17:27:47 +0000 (17:27 +0000)]
Add debug_level_is_enabled()

9 years agoBlock rotation.linuxnewmedia.com/
Fabian Keil [Fri, 27 Jul 2012 17:26:37 +0000 (17:26 +0000)]
Block rotation.linuxnewmedia.com/

9 years agoBlock reklamy.sfd.pl/
Fabian Keil [Fri, 27 Jul 2012 17:26:13 +0000 (17:26 +0000)]
Block reklamy.sfd.pl/

Reported by kacperdominik in #3399948.

9 years agoRevert 1.381 which wasn't a style change after all
Fabian Keil [Mon, 23 Jul 2012 12:55:25 +0000 (12:55 +0000)]
Revert 1.381 which wasn't a style change after all

9 years agoAdd #105: Add support for socks authentication.
Fabian Keil [Mon, 23 Jul 2012 12:49:51 +0000 (12:49 +0000)]
Add #105: Add support for socks authentication.

9 years agoAdd test URLs for .freebsd.org and .watson.org
Fabian Keil [Mon, 23 Jul 2012 12:49:28 +0000 (12:49 +0000)]
Add test URLs for .freebsd.org and .watson.org

9 years agoUnblock .urbandictionary.com/popular
Fabian Keil [Mon, 23 Jul 2012 12:49:13 +0000 (12:49 +0000)]
Unblock .urbandictionary.com/popular

9 years agoBlock requests to .adnxs.com/
Fabian Keil [Mon, 23 Jul 2012 12:48:47 +0000 (12:48 +0000)]
Block requests to .adnxs.com/

9 years agoBlock farm.plista.com/widgetdata.php
Fabian Keil [Mon, 23 Jul 2012 12:47:39 +0000 (12:47 +0000)]
Block farm.plista.com/widgetdata.php

9 years agoUpdate copyright range
Fabian Keil [Mon, 23 Jul 2012 12:47:01 +0000 (12:47 +0000)]
Update copyright range

9 years agoIn ssplit(), assert() that the last substring already is nul-terminated
Fabian Keil [Mon, 23 Jul 2012 12:46:40 +0000 (12:46 +0000)]
In ssplit(), assert() that the last substring already is nul-terminated

9 years agoUse an enum to replace a couple of magic numbers in ssplit()
Fabian Keil [Mon, 23 Jul 2012 12:46:18 +0000 (12:46 +0000)]
Use an enum to replace a couple of magic numbers in ssplit()

9 years agoRemove two pointless casts in ssplit()
Fabian Keil [Mon, 23 Jul 2012 12:44:30 +0000 (12:44 +0000)]
Remove two pointless casts in ssplit()

9 years agoRelocate a comment in ssplit()
Fabian Keil [Mon, 23 Jul 2012 12:44:17 +0000 (12:44 +0000)]
Relocate a comment in ssplit()

9 years agoBump copyright year
Fabian Keil [Mon, 23 Jul 2012 12:43:56 +0000 (12:43 +0000)]
Bump copyright year

9 years agoStart using malloc_or_die()
Fabian Keil [Mon, 23 Jul 2012 12:42:53 +0000 (12:42 +0000)]
Start using malloc_or_die()

9 years agoAdd malloc_or_die() which will allow to simplify code paths were malloc() failures...
Fabian Keil [Mon, 23 Jul 2012 12:41:59 +0000 (12:41 +0000)]
Add malloc_or_die() which will allow to simplify code paths were malloc() failures don't need to be handled gracefully

9 years agoMerge two if conditions in main()
Fabian Keil [Mon, 23 Jul 2012 12:40:52 +0000 (12:40 +0000)]
Merge two if conditions in main()

9 years agoBump copyright to 2012
Fabian Keil [Mon, 23 Jul 2012 12:40:30 +0000 (12:40 +0000)]
Bump copyright to 2012

9 years agoProperly highlight the new log messages from get_request_line().
Fabian Keil [Mon, 23 Jul 2012 12:40:08 +0000 (12:40 +0000)]
Properly highlight the new log messages from get_request_line().

9 years agoReplace strdup() calls with strdup_or_die() calls were it's safe and simplifies the...
Fabian Keil [Mon, 23 Jul 2012 12:39:42 +0000 (12:39 +0000)]
Replace strdup() calls with strdup_or_die() calls were it's safe and simplifies the code

9 years agoDo not confuse a client hanging up with a connection time out
Fabian Keil [Mon, 23 Jul 2012 12:39:12 +0000 (12:39 +0000)]
Do not confuse a client hanging up with a connection time out

If a client closes its side of the connection without sending
a request line, do not send the CLIENT_CONNECTION_TIMEOUT_RESPONSE,
but report the condition properly.

This was reproducible with (for example):
false | nc privoxy-jail 8118

10 years agoFix a clang warning about integers and enums being mixed
Fabian Keil [Tue, 19 Jun 2012 12:50:22 +0000 (12:50 +0000)]
Fix a clang warning about integers and enums being mixed

10 years agoUpdate Junkbuster-related FAQ sections
Fabian Keil [Tue, 19 Jun 2012 12:49:48 +0000 (12:49 +0000)]
Update Junkbuster-related FAQ sections

Remove the dead links and use the past tense as
the fork happened years ago.

10 years agowww.junkbusters.com has been shut down, update the history section accordingly
Fabian Keil [Tue, 19 Jun 2012 12:49:25 +0000 (12:49 +0000)]
junkbusters.com has been shut down, update the history section accordingly

10 years agoRemove two links to www.junkbusters.com which is no longer maintained
Fabian Keil [Tue, 19 Jun 2012 12:48:54 +0000 (12:48 +0000)]
Remove two links to junkbusters.com which is no longer maintained

We already link to Wikipedia's Cookie description elsewhere and
Privoxy's origins are sufficiently documented in history.sgml,
so the links don't need replacements here.

Reported by Angelina Matson.

10 years agoPrevent the CVS substitution in the generated example comment as well
Fabian Keil [Tue, 19 Jun 2012 12:48:04 +0000 (12:48 +0000)]
Prevent the CVS substitution in the generated example comment as well

10 years agoRemove pointless 'debugging support' in ssplit()
Fabian Keil [Fri, 8 Jun 2012 15:16:15 +0000 (15:16 +0000)]
Remove pointless 'debugging support' in ssplit()

gdb offers the same information without recompiling.

10 years agoShorten ssplit()'s prototype by removing the last two arguments
Fabian Keil [Fri, 8 Jun 2012 15:15:11 +0000 (15:15 +0000)]
Shorten ssplit()'s prototype by removing the last two arguments

We always want to skip empty fields and ignore leading
delimiters, so having parameters for this only complicates
the API.

10 years agoLet load_one_actions_file() use ssplit() like every other function
Fabian Keil [Fri, 8 Jun 2012 15:09:06 +0000 (15:09 +0000)]
Let load_one_actions_file() use ssplit() like every other function

It doesn't matter whether or not ignore_leading is enabled.

10 years agoRemove an unreasonable parameter limit in parse_cgi_parameters()
Fabian Keil [Fri, 8 Jun 2012 15:08:33 +0000 (15:08 +0000)]
Remove an unreasonable parameter limit in parse_cgi_parameters()

The new parameter limit depends on the memory available and
is currently unlikely to be reachable, due to other limits in
both Privoxy and common clients.

So the limit is actually still there, but at least it's no
longer unreasonable, is properly handled, and should be high
enough for anybody.

Reported by Andrew on ijbswa-users@.

10 years agoCatch ssplit() failures in parse_cgi_parameters()
Fabian Keil [Fri, 8 Jun 2012 15:07:53 +0000 (15:07 +0000)]
Catch ssplit() failures in parse_cgi_parameters()

10 years agoAdd #104: The code to modify global_toggle_state should be factored out into a separa...
Fabian Keil [Sun, 27 May 2012 15:51:34 +0000 (15:51 +0000)]
Add #104: The code to modify global_toggle_state should be factored out into a separate function

10 years agoRemove debug code that crept in with the previous "fix"
Fabian Keil [Sun, 27 May 2012 15:45:05 +0000 (15:45 +0000)]
Remove debug code that crept in with the previous "fix"

D'oh.

10 years agoFinish the previous commit, the added comment wasn't the final version
Fabian Keil [Sun, 27 May 2012 15:38:53 +0000 (15:38 +0000)]
Finish the previous commit, the added comment wasn't the final version

10 years agoIn OnLogCommand(), leverage TIMER_ANIMSTOP_ID to set the idle icon through the 'appli...
Fabian Keil [Sun, 27 May 2012 15:36:15 +0000 (15:36 +0000)]
In OnLogCommand(), leverage TIMER_ANIMSTOP_ID to set the idle icon through the 'application queue'

Apparently the functions called by SetIdleIcon() aren't
thread-safe and their interaction can cause deadlocks.

An earlier version of the patch has been tested by Lee and
doesn't seem to cause obvious regressions other than the
icon change being delayed by (at least) the 10 milliseconds
until the timer fires.

This is expected to fix #3525694 reported by Tim H.

10 years agoRemove a duplicated 'the'
Fabian Keil [Sun, 27 May 2012 15:31:24 +0000 (15:31 +0000)]
Remove a duplicated 'the'

Spotted by igor.

10 years agoFix lyrics in LogWindowProc()
Fabian Keil [Thu, 24 May 2012 15:05:17 +0000 (15:05 +0000)]
Fix lyrics in LogWindowProc()

10 years agoDeclare pcrs_get_delimiter()'s delimiters[] static const
Fabian Keil [Thu, 24 May 2012 15:04:34 +0000 (15:04 +0000)]
Declare pcrs_get_delimiter()'s delimiters[] static const

10 years agoIn pcrs_get_delimiter(), do not use delimiters ouside the ASCII range
Fabian Keil [Thu, 24 May 2012 15:02:38 +0000 (15:02 +0000)]
In pcrs_get_delimiter(), do not use delimiters ouside the ASCII range

Fixes a clang complaint.

10 years agoCleanup variable initialization in print_non_clf_message()
Fabian Keil [Thu, 24 May 2012 15:02:00 +0000 (15:02 +0000)]
Cleanup variable initialization in print_non_clf_message()

10 years agoShift subroutine arguments more consistently
Fabian Keil [Thu, 24 May 2012 15:01:05 +0000 (15:01 +0000)]
Shift subroutine arguments more consistently

10 years agoChange a two-argument open() call to use three arguments
Fabian Keil [Thu, 24 May 2012 15:00:46 +0000 (15:00 +0000)]
Change a two-argument open() call to use three arguments

10 years agoChange a couple of two-argument open() calls to use three arguments
Fabian Keil [Thu, 24 May 2012 15:00:27 +0000 (15:00 +0000)]
Change a couple of two-argument open() calls to use three arguments

10 years agoRemove a superfluous comment in OnLogCommand()
Fabian Keil [Thu, 24 May 2012 14:59:59 +0000 (14:59 +0000)]
Remove a superfluous comment in OnLogCommand()

10 years agoMerge two log_error() calls in OnLogCommand()
Fabian Keil [Thu, 24 May 2012 14:59:41 +0000 (14:59 +0000)]
Merge two log_error() calls in OnLogCommand()

10 years agoRemove dead code in SetIdleIcon()
Fabian Keil [Thu, 24 May 2012 14:59:25 +0000 (14:59 +0000)]
Remove dead code in SetIdleIcon()

10 years agoAccept a socket-timeout value of 0 seconds.
Fabian Keil [Thu, 24 May 2012 14:58:16 +0000 (14:58 +0000)]
Accept a socket-timeout value of 0 seconds.

Impatience isn't necessarily a syntax problem.

10 years agoAccept a default-server-timeout of 0. It's the default after all.
Fabian Keil [Thu, 24 May 2012 14:57:49 +0000 (14:57 +0000)]
Accept a default-server-timeout of 0. It's the default after all.

10 years agoUnblock '/.*Bugtracker'
Fabian Keil [Sun, 29 Apr 2012 16:18:39 +0000 (16:18 +0000)]
Unblock '/.*Bugtracker'

Reported by pwhk in #3522341.

10 years agoLog to STDOUT instead of STDERR
Fabian Keil [Sun, 29 Apr 2012 16:18:01 +0000 (16:18 +0000)]
Log to STDOUT instead of STDERR

STDOUT isn't used for anything else and logging to STDERR makes
piping unpleasant without any benefit (that I remember).

10 years agoReduce the likelihood that the google filter messes up HTML-generating JavaScript
Fabian Keil [Sun, 22 Apr 2012 12:17:08 +0000 (12:17 +0000)]
Reduce the likelihood that the google filter messes up HTML-generating JavaScript

Reported by Zeno Kugy in #3520260.

10 years agoRemove an obsolete newstuff marker
Fabian Keil [Sun, 22 Apr 2012 12:16:24 +0000 (12:16 +0000)]
Remove an obsolete newstuff marker

10 years agoFix an URL in the "Privoxy with Tor" FAQ
Fabian Keil [Sun, 22 Apr 2012 12:16:09 +0000 (12:16 +0000)]
Fix an URL in the "Privoxy with Tor" FAQ

10 years agoUse another client-header-tagger{} example: disable filtering for range requests
Fabian Keil [Sun, 22 Apr 2012 12:15:53 +0000 (12:15 +0000)]
Use another client-header-tagger{} example: disable filtering for range requests

10 years agoAdd #103: Potential performance improvement for large action files
Fabian Keil [Sun, 22 Apr 2012 12:15:33 +0000 (12:15 +0000)]
Add #103: Potential performance improvement for large action files

10 years agoTests with mostly invalid range request
Fabian Keil [Sun, 22 Apr 2012 12:14:46 +0000 (12:14 +0000)]
Tests with mostly invalid range request

10 years agoBump copyright and note that the tests now require 3.0.20 or later to work
Fabian Keil [Fri, 6 Apr 2012 15:18:12 +0000 (15:18 +0000)]
Bump copyright and note that the tests now require 3.0.20 or later to work

10 years agoAdditional tests for range requests with filtering enabled
Fabian Keil [Fri, 6 Apr 2012 15:17:41 +0000 (15:17 +0000)]
Additional tests for range requests with filtering enabled

10 years agoIn client_range(), let headers pass if the range starts at the beginning
Fabian Keil [Fri, 6 Apr 2012 15:17:10 +0000 (15:17 +0000)]
In client_range(), let headers pass if the range starts at the beginning

Could work around (or at least reduce the) video playback
issues with various Apple clients as reported in #3426305.

10 years agoWe use XXX not FIXME
Fabian Keil [Tue, 20 Mar 2012 13:05:55 +0000 (13:05 +0000)]
We use XXX not FIXME

10 years agoRemove bogus section about long and short being preferable to int
Fabian Keil [Tue, 20 Mar 2012 13:05:39 +0000 (13:05 +0000)]
Remove bogus section about long and short being preferable to int

10 years agoAdjust whitespace in examples to be closer to our style
Fabian Keil [Tue, 20 Mar 2012 13:05:14 +0000 (13:05 +0000)]
Adjust whitespace in examples to be closer to our style

10 years agoIJB is dead, long live Privoxy
Fabian Keil [Tue, 20 Mar 2012 13:04:54 +0000 (13:04 +0000)]
IJB is dead, long live Privoxy

10 years agoThe redhat-dok target no longer exists so there's no point documenting it
Fabian Keil [Tue, 20 Mar 2012 13:04:41 +0000 (13:04 +0000)]
The redhat-dok target no longer exists so there's no point documenting it

10 years agoWe no longer build PDFs so stop pretending
Fabian Keil [Tue, 20 Mar 2012 13:04:19 +0000 (13:04 +0000)]
We no longer build PDFs so stop pretending

10 years agoComment out references to multiple branches
Fabian Keil [Tue, 20 Mar 2012 13:04:03 +0000 (13:04 +0000)]
Comment out references to multiple branches

We currently don't use any.

10 years agoBump copyright date
Fabian Keil [Tue, 20 Mar 2012 13:03:05 +0000 (13:03 +0000)]
Bump copyright date

10 years agoUpdate the list of supported operating systems
Fabian Keil [Tue, 20 Mar 2012 13:02:50 +0000 (13:02 +0000)]
Update the list of supported operating systems

Clarify that all Windows versions after 95 are expected to
work and note that the platform-specific code for AmigaOS
and QNX currently isn't maintained.

10 years agoMultiple listen-address directives are supported since 3.0.18, stop pretending they...
Fabian Keil [Mon, 19 Mar 2012 12:56:41 +0000 (12:56 +0000)]
Multiple listen-address directives are supported since 3.0.18, stop pretending they aren't

10 years agoAdd missing spaces in the listen-address section
Fabian Keil [Mon, 19 Mar 2012 12:56:26 +0000 (12:56 +0000)]
Add missing spaces in the listen-address section

10 years agoUntabify
Fabian Keil [Mon, 19 Mar 2012 12:56:08 +0000 (12:56 +0000)]
Untabify

10 years agoUpdate an error message that still tried to print directive_hash as long
Fabian Keil [Sun, 18 Mar 2012 15:48:59 +0000 (15:48 +0000)]
Update an error message that still tried to print directive_hash as long

10 years agoChange RA_MODE from 0664 to 0644
Fabian Keil [Sun, 18 Mar 2012 15:47:54 +0000 (15:47 +0000)]
Change RA_MODE from 0664 to 0644

Suggested by Markus Dittrich in #3505445.

10 years agoAdd a referer tagger
Fabian Keil [Sun, 18 Mar 2012 15:45:44 +0000 (15:45 +0000)]
Add a referer tagger

10 years agoAdd #102: Add an include directive to split the config file into several parts.
Fabian Keil [Sun, 18 Mar 2012 15:44:57 +0000 (15:44 +0000)]
Add #102: Add an include directive to split the config file into several parts.

10 years agoRebuilt HTML for 3.0.20 UNRELEASED with Ian's recent changes
Fabian Keil [Sun, 18 Mar 2012 15:44:20 +0000 (15:44 +0000)]
Rebuilt HTML for 3.0.20 UNRELEASED with Ian's recent changes

10 years agoDo not let the dok-tidy target taint the docs with a tidy-mark
Fabian Keil [Sun, 18 Mar 2012 15:42:44 +0000 (15:42 +0000)]
Do not let the dok-tidy target taint the docs with a tidy-mark

The resulting markup is really nothing to be proud of.

10 years agoBump entities to 3.0.20 UNRELEASED
Fabian Keil [Sun, 18 Mar 2012 15:41:49 +0000 (15:41 +0000)]
Bump entities to 3.0.20 UNRELEASED

10 years agoFix a typo in the no-zlib-support complaint
Fabian Keil [Sun, 18 Mar 2012 13:48:27 +0000 (13:48 +0000)]
Fix a typo in the no-zlib-support complaint

Patch submitted by Matthew Fischer in #3507304.

10 years agoFix an error message in get_last_url() nobody is supposed to see
Fabian Keil [Sun, 18 Mar 2012 13:47:33 +0000 (13:47 +0000)]
Fix an error message in get_last_url() nobody is supposed to see

Reported by Matthew Fischer in #3507301.

10 years agoBump version to 1.2.1
Fabian Keil [Sun, 18 Mar 2012 13:47:11 +0000 (13:47 +0000)]
Bump version to 1.2.1

10 years agoBump generated Firefox version to 10.0.3
Fabian Keil [Sun, 18 Mar 2012 13:46:54 +0000 (13:46 +0000)]
Bump generated Firefox version to 10.0.3

10 years agoBrought OS X section up to date, deprecating the osxsetup module and adding a section...
Ian Silvester [Sun, 18 Mar 2012 01:16:35 +0000 (01:16 +0000)]
Brought OS X section up to date, deprecating the osxsetup module and adding a section referring to the OSXPackageBuilder module

10 years agoAdded OS X testers to documentation
Ian Silvester [Wed, 14 Mar 2012 17:58:47 +0000 (17:58 +0000)]
Added OS X testers to documentation

10 years agoUpdated user manual to refer to both packaged and source install options for OS X
Ian Silvester [Sun, 11 Mar 2012 19:03:42 +0000 (19:03 +0000)]
Updated user manual to refer to both packaged and source install options for OS X

10 years agoAccept and highlight: Stopping to watch the client socket. There's already another...
Fabian Keil [Sat, 10 Mar 2012 11:15:15 +0000 (11:15 +0000)]
Accept and highlight: Stopping to watch the client socket. There's already another request waiting.

It's emitted by Privoxy versions before 3.0.20 and the
previous commit was supposed to cover it but didn't due
to a trailing space in the regex.

10 years agoAccept and highlight: Stopping to watch the client socket 5. There's already another...
Fabian Keil [Sat, 10 Mar 2012 11:08:44 +0000 (11:08 +0000)]
Accept and highlight: Stopping to watch the client socket 5. There's already another request waiting.

10 years agoWhen stopping to watch a client socket due to pipelining, additionally log the socket...
Fabian Keil [Sat, 10 Mar 2012 11:08:10 +0000 (11:08 +0000)]
When stopping to watch a client socket due to pipelining, additionally log the socket number

10 years agoIn case of SOCKS5 failures, do not explicitly log the server's response
Fabian Keil [Sat, 10 Mar 2012 11:06:09 +0000 (11:06 +0000)]
In case of SOCKS5 failures, do not explicitly log the server's response

It hasn't helped so far and the response can already
be logged by enabling "debug 32768" anyway.

This reverts v1.81 and the follow-up bug fix v1.84.

10 years agoRelocate two parentheses I misplaced in the previous commit. No functional change...
Fabian Keil [Fri, 9 Mar 2012 18:06:13 +0000 (18:06 +0000)]
Relocate two parentheses I misplaced in the previous commit. No functional change intended.

10 years agoUnwrap a memcpy() call in resolve_hostname_to_ip()
Fabian Keil [Fri, 9 Mar 2012 17:56:41 +0000 (17:56 +0000)]
Unwrap a memcpy() call in resolve_hostname_to_ip()

10 years agoAdd some parentheses. No intended functional change.
Fabian Keil [Fri, 9 Mar 2012 17:56:21 +0000 (17:56 +0000)]
Add some parentheses. No intended functional change.

10 years agoFollow-up fixes for the previous white-space changes
Fabian Keil [Fri, 9 Mar 2012 17:55:50 +0000 (17:55 +0000)]
Follow-up fixes for the previous white-space changes

Clearly the commits belong together, but somebody failed to squash them.