Fabian Keil [Fri, 12 Oct 2012 11:15:17 +0000 (11:15 +0000)]
Don't bother checking for strstr() as we have no fallback anyway
Fabian Keil [Fri, 12 Oct 2012 11:12:22 +0000 (11:12 +0000)]
Spread a AC_CHECK_FUNCS() line across one line per checked function to make future diffs more readable
Fabian Keil [Fri, 12 Oct 2012 11:11:42 +0000 (11:11 +0000)]
Remove two checks that were already commented out
Fabian Keil [Fri, 12 Oct 2012 11:11:06 +0000 (11:11 +0000)]
Spread the AC_CHECK_HEADERS() check across one line per header to make future diffs more readable
Fabian Keil [Fri, 12 Oct 2012 11:10:10 +0000 (11:10 +0000)]
Update server_proxy_connection_adder()'s description to reflect reality
Fabian Keil [Fri, 12 Oct 2012 11:09:27 +0000 (11:09 +0000)]
Add DragonFly to the list of BSDs Privoxy is known to run on
Fabian Keil [Fri, 12 Oct 2012 11:08:55 +0000 (11:08 +0000)]
Add Haiku to the list of operating systems Privoxy is known to run on
Fabian Keil [Fri, 5 Oct 2012 12:16:23 +0000 (12:16 +0000)]
Move a variable declaration in parse_client_header_order() to the beginning of its code block
It's how we usually do it and is apparently also required
when compiling with gcc 2.95.
Initial patch submitted by Simon South in #
3564815.
Fabian Keil [Fri, 5 Oct 2012 12:15:39 +0000 (12:15 +0000)]
Move a couple of variable declarations in get_last_url() to the beginning of their code block
It's how we usually do it and is apparently also required
when compiling with gcc 2.95.
Initial patch submitted by Simon South in #
3564815.
Fabian Keil [Fri, 5 Oct 2012 12:14:33 +0000 (12:14 +0000)]
Additional Haiku-specific improvements
- Disable checks intended for multi-user systems
(as Haiku is presently single-user).
- Group Haiku-specific settings in their own section,
following the pattern for Solaris, OS/2 and AmigaOS
- Add additional library-related settings to remove
the need for providing configure with custom LDFLAGS.
Submitted by Simon South in #
3574538.
Fabian Keil [Wed, 26 Sep 2012 15:20:54 +0000 (15:20 +0000)]
Spell 'refresh-tags' correctly
Reported by Don in #
3571927.
Fabian Keil [Thu, 20 Sep 2012 11:22:20 +0000 (11:22 +0000)]
Documentation for 3.0.19, regenerated with the modified tidy changes
Fabian Keil [Thu, 20 Sep 2012 10:44:18 +0000 (10:44 +0000)]
Bring back the body attributes now that tidy no longer messes them up
Apparently they aren't entirely useless as they prevent
the Docbook mess from inserting other attributes.
Fabian Keil [Thu, 20 Sep 2012 10:43:41 +0000 (10:43 +0000)]
Leave it up to the user whether or not smart tags are inserted
Fabian Keil [Thu, 20 Sep 2012 10:43:11 +0000 (10:43 +0000)]
Ditch pointless keywords. Search engines no longer need them.
Fabian Keil [Thu, 20 Sep 2012 10:42:49 +0000 (10:42 +0000)]
Remove tidy's clean flag as it changes the scope of attributes
Link-specific colors end up being applied to all text.
Reported by Adam Piggott in #
3569551.
Fabian Keil [Thu, 20 Sep 2012 09:05:06 +0000 (09:05 +0000)]
Ditch obsolete body attributes
The style sheets are sufficient and the body attributes
didn't properly make it through the docbook/tidy chain,
causing link-specific attributes to be applied to all text.
Reported by Adam Piggott in #
3569551.
Fabian Keil [Tue, 18 Sep 2012 18:29:55 +0000 (18:29 +0000)]
In finish_http_response(), set 'Connection: close' after preventing pipelining
I missed the CGI parts when committing parsers.c v1.250.
Fabian Keil [Tue, 18 Sep 2012 17:39:29 +0000 (17:39 +0000)]
Revert an incorrect part of 1.250 that could result in two Connection headers being sent
Fabian Keil [Wed, 5 Sep 2012 08:40:59 +0000 (08:40 +0000)]
On Haiku, do not pass -lpthread to the compiler
Haiku's pthreads implementation is contained in its system library,
libroot, so no additional library needs to be searched.
Patch submitted by Simon South in #
3564815.
Fabian Keil [Tue, 4 Sep 2012 08:40:25 +0000 (08:40 +0000)]
Accept and highlight: Accepted connection from 10.0.0.1 on socket 5
Fabian Keil [Tue, 4 Sep 2012 08:39:58 +0000 (08:39 +0000)]
Relocate the connection-accepted message from listen_loop() to serve()
This way it's printed by the thread that is actually serving the
connection which is nice when grepping for thread ids in log files.
While at it, use an upper-case first character which is more
consistent with the other log messages.
Fabian Keil [Tue, 4 Sep 2012 08:39:30 +0000 (08:39 +0000)]
Stop suppressing messages about accepted client connections and highlight them properly
Fabian Keil [Tue, 4 Sep 2012 08:39:02 +0000 (08:39 +0000)]
Fix a comment in client_connection()
Fabian Keil [Tue, 4 Sep 2012 08:38:31 +0000 (08:38 +0000)]
After preventing the client from pipeling, don't signal keep-alive intentions
When looking at the response headers alone, it previously wasn't
obvious from the client's perspective that no additional responses
should be expected.
This might improve compatibility with Opera (#
3464439).
Fabian Keil [Tue, 4 Sep 2012 08:37:51 +0000 (08:37 +0000)]
Figure out the request length before running sed()
We may want to adjust the Connection header based on the information.
Fabian Keil [Tue, 4 Sep 2012 08:33:31 +0000 (08:33 +0000)]
Add get_expected_content_length()
Fabian Keil [Tue, 4 Sep 2012 08:32:32 +0000 (08:32 +0000)]
Let get_content_length() use a header value as input instead of the whole header
This makes it easier to use it in combination with get_header_value().
Fabian Keil [Tue, 4 Sep 2012 08:32:03 +0000 (08:32 +0000)]
Note that CSP_FLAG_SERVER_SOCKET_TAINTED is poorly named
Fabian Keil [Tue, 4 Sep 2012 08:31:32 +0000 (08:31 +0000)]
Bump generated Firefox version to 14.0.1
Fabian Keil [Tue, 4 Sep 2012 08:31:12 +0000 (08:31 +0000)]
Block g.adspeed.net/
Fabian Keil [Fri, 27 Jul 2012 17:42:39 +0000 (17:42 +0000)]
Accept and highlight: Closing client socket 5. Keep-alive: 0, Socket alive: 1. Data available: 0
Fabian Keil [Fri, 27 Jul 2012 17:42:09 +0000 (17:42 +0000)]
Remove #101: Forward known client headers in a predefined order
The "predefined order" part is implemented and the randomization
no longer strikes me as useful.
Fabian Keil [Fri, 27 Jul 2012 17:41:42 +0000 (17:41 +0000)]
Bump copyright
Fabian Keil [Fri, 27 Jul 2012 17:41:10 +0000 (17:41 +0000)]
Mention the shiny new LOG_LEVEL_ACTIONS
Fabian Keil [Fri, 27 Jul 2012 17:40:31 +0000 (17:40 +0000)]
Accept the shiny new LOG_LEVEL_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.
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
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
Fabian Keil [Fri, 27 Jul 2012 17:37:00 +0000 (17:37 +0000)]
Accept and ignore: Enlisting (sorted|left-over) header ...
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.
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.
Fabian Keil [Fri, 27 Jul 2012 17:27:47 +0000 (17:27 +0000)]
Add debug_level_is_enabled()
Fabian Keil [Fri, 27 Jul 2012 17:26:37 +0000 (17:26 +0000)]
Block rotation.linuxnewmedia.com/
Fabian Keil [Fri, 27 Jul 2012 17:26:13 +0000 (17:26 +0000)]
Block reklamy.sfd.pl/
Reported by kacperdominik in #
3399948.
Fabian Keil [Mon, 23 Jul 2012 12:55:25 +0000 (12:55 +0000)]
Revert 1.381 which wasn't a style change after all
Fabian Keil [Mon, 23 Jul 2012 12:49:51 +0000 (12:49 +0000)]
Add #105: Add support for socks authentication.
Fabian Keil [Mon, 23 Jul 2012 12:49:28 +0000 (12:49 +0000)]
Add test URLs for .freebsd.org and .watson.org
Fabian Keil [Mon, 23 Jul 2012 12:49:13 +0000 (12:49 +0000)]
Unblock .urbandictionary.com/popular
Fabian Keil [Mon, 23 Jul 2012 12:48:47 +0000 (12:48 +0000)]
Block requests to .adnxs.com/
Fabian Keil [Mon, 23 Jul 2012 12:47:39 +0000 (12:47 +0000)]
Block farm.plista.com/widgetdata.php
Fabian Keil [Mon, 23 Jul 2012 12:47:01 +0000 (12:47 +0000)]
Update copyright range
Fabian Keil [Mon, 23 Jul 2012 12:46:40 +0000 (12:46 +0000)]
In ssplit(), assert() that the last substring already is nul-terminated
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()
Fabian Keil [Mon, 23 Jul 2012 12:44:30 +0000 (12:44 +0000)]
Remove two pointless casts in ssplit()
Fabian Keil [Mon, 23 Jul 2012 12:44:17 +0000 (12:44 +0000)]
Relocate a comment in ssplit()
Fabian Keil [Mon, 23 Jul 2012 12:43:56 +0000 (12:43 +0000)]
Bump copyright year
Fabian Keil [Mon, 23 Jul 2012 12:42:53 +0000 (12:42 +0000)]
Start using malloc_or_die()
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
Fabian Keil [Mon, 23 Jul 2012 12:40:52 +0000 (12:40 +0000)]
Merge two if conditions in main()
Fabian Keil [Mon, 23 Jul 2012 12:40:30 +0000 (12:40 +0000)]
Bump copyright to 2012
Fabian Keil [Mon, 23 Jul 2012 12:40:08 +0000 (12:40 +0000)]
Properly highlight the new log messages from get_request_line().
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
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
Fabian Keil [Tue, 19 Jun 2012 12:50:22 +0000 (12:50 +0000)]
Fix a clang warning about integers and enums being mixed
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.
Fabian Keil [Tue, 19 Jun 2012 12:49:25 +0000 (12:49 +0000)]
junkbusters.com has been shut down, update the history section accordingly
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.
Fabian Keil [Tue, 19 Jun 2012 12:48:04 +0000 (12:48 +0000)]
Prevent the CVS substitution in the generated example comment as well
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.
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.
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.
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@.
Fabian Keil [Fri, 8 Jun 2012 15:07:53 +0000 (15:07 +0000)]
Catch ssplit() failures in parse_cgi_parameters()
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
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.
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
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.
Fabian Keil [Sun, 27 May 2012 15:31:24 +0000 (15:31 +0000)]
Remove a duplicated 'the'
Spotted by igor.
Fabian Keil [Thu, 24 May 2012 15:05:17 +0000 (15:05 +0000)]
Fix lyrics in LogWindowProc()
Fabian Keil [Thu, 24 May 2012 15:04:34 +0000 (15:04 +0000)]
Declare pcrs_get_delimiter()'s delimiters[] static const
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.
Fabian Keil [Thu, 24 May 2012 15:02:00 +0000 (15:02 +0000)]
Cleanup variable initialization in print_non_clf_message()
Fabian Keil [Thu, 24 May 2012 15:01:05 +0000 (15:01 +0000)]
Shift subroutine arguments more consistently
Fabian Keil [Thu, 24 May 2012 15:00:46 +0000 (15:00 +0000)]
Change a two-argument open() call 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
Fabian Keil [Thu, 24 May 2012 14:59:59 +0000 (14:59 +0000)]
Remove a superfluous comment in OnLogCommand()
Fabian Keil [Thu, 24 May 2012 14:59:41 +0000 (14:59 +0000)]
Merge two log_error() calls in OnLogCommand()
Fabian Keil [Thu, 24 May 2012 14:59:25 +0000 (14:59 +0000)]
Remove dead code in SetIdleIcon()
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.
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.
Fabian Keil [Sun, 29 Apr 2012 16:18:39 +0000 (16:18 +0000)]
Unblock '/.*Bugtracker'
Reported by pwhk in #
3522341.
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).
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.
Fabian Keil [Sun, 22 Apr 2012 12:16:24 +0000 (12:16 +0000)]
Remove an obsolete newstuff marker
Fabian Keil [Sun, 22 Apr 2012 12:16:09 +0000 (12:16 +0000)]
Fix an URL in the "Privoxy with Tor" FAQ
Fabian Keil [Sun, 22 Apr 2012 12:15:53 +0000 (12:15 +0000)]
Use another client-header-tagger{} example: disable filtering for range requests
Fabian Keil [Sun, 22 Apr 2012 12:15:33 +0000 (12:15 +0000)]
Add #103: Potential performance improvement for large action files
Fabian Keil [Sun, 22 Apr 2012 12:14:46 +0000 (12:14 +0000)]
Tests with mostly invalid range request
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