Fabian Keil [Fri, 19 Oct 2007 16:53:28 +0000 (16:53 +0000)]
Add helper function to check if any content filters are enabled.
Fabian Keil [Fri, 19 Oct 2007 16:42:36 +0000 (16:42 +0000)]
Plug memory leak I introduced five months ago.
Yay Valgrind and Privoxy-Regression-Test.
Fabian Keil [Fri, 19 Oct 2007 16:32:34 +0000 (16:32 +0000)]
Plug memory leak introduced with my last commit.
Fabian Keil [Wed, 17 Oct 2007 19:31:20 +0000 (19:31 +0000)]
Omitting the zero chunk that ends the chunk transfer encoding seems
to be the new black. Log the problem and continue filtering anyway.
Fabian Keil [Wed, 17 Oct 2007 18:40:53 +0000 (18:40 +0000)]
- Send CGI pages as HTTP/1.1 unless the client asked for HTTP/1.0.
- White space fix.
Fabian Keil [Wed, 17 Oct 2007 18:11:32 +0000 (18:11 +0000)]
Add privoxy-control header filters and taggers.
Roland Rosenfeld [Sun, 14 Oct 2007 16:00:46 +0000 (16:00 +0000)]
Update all patches to CVS version as of 2007-10-14.
Fabian Keil [Sun, 14 Oct 2007 14:26:56 +0000 (14:26 +0000)]
Remove the old log_error() version.
Fabian Keil [Sun, 14 Oct 2007 14:12:41 +0000 (14:12 +0000)]
When in daemon mode, close stderr after the configuration file has been
parsed the first time. If logfile isn't set, stop logging. Fixes BR#897436.
proactivesvcs [Fri, 12 Oct 2007 13:36:49 +0000 (13:36 +0000)]
Added .widgetbucks due to scrolly adverts
Fabian Keil [Wed, 10 Oct 2007 17:29:57 +0000 (17:29 +0000)]
I forgot about Poland.
Fabian Keil [Tue, 9 Oct 2007 16:38:40 +0000 (16:38 +0000)]
Remove Range and If-Range headers if content filtering is enabled.
Fabian Keil [Sat, 6 Oct 2007 15:45:25 +0000 (15:45 +0000)]
Let msn hide sponsored links in #at divs.
Fabian Keil [Sat, 6 Oct 2007 09:54:13 +0000 (09:54 +0000)]
- Let msn hide sponsored links in #ar divs.
- Teach banners-by-link not to block the graphs for sf's tracker statistics.
hal9 [Fri, 5 Oct 2007 02:02:05 +0000 (02:02 +0000)]
Take nic.ad.jp to just .ad.jp per Tracker feedback.
Fabian Keil [Thu, 4 Oct 2007 18:07:00 +0000 (18:07 +0000)]
Move ACTION_VANILLA_WAFER handling from jcc's chat() into
client_cookie_adder() to make sure send-vanilla-wafer can be
controlled through tags (and thus regression-tested).
Fabian Keil [Thu, 4 Oct 2007 18:03:34 +0000 (18:03 +0000)]
- Fix a crash when parsing invalid requests whose first header
is rejected by get_header(). Regression (re?)introduced
in r1.143 by yours truly.
- Move ACTION_VANILLA_WAFER handling into parsers.c's
client_cookie_adder() to make sure send-vanilla-wafer can be
controlled through tags (and thus regression-tested).
Fabian Keil [Sun, 30 Sep 2007 16:59:22 +0000 (16:59 +0000)]
Set the maximum listen() backlog to 128. Apparently SOMAXCONN is
neither high enough, nor a hard limit on mingw32. Again for BR#
1795281.
Fabian Keil [Sun, 30 Sep 2007 14:39:13 +0000 (14:39 +0000)]
- Don't enable fast-redirect for ".*rd.yahoo.com/". It slightly
violates our "don't break too many sites by default" policy.
- Add a fast-redirect exception for the yahoo URL reported
in AF#
1802365 by David Harper.
Fabian Keil [Sat, 29 Sep 2007 13:20:20 +0000 (13:20 +0000)]
Remove two redundant and one useless log messages.
Fabian Keil [Sat, 29 Sep 2007 10:42:37 +0000 (10:42 +0000)]
- Remove "scanning headers for" log message again.
- Some more whitespace fixes.
Fabian Keil [Sat, 29 Sep 2007 10:21:16 +0000 (10:21 +0000)]
- Move get_filter_function() from jcc.c to filters.c
so the filter functions can be static.
- Don't bother filtering body-less responses.
Fabian Keil [Fri, 28 Sep 2007 16:39:29 +0000 (16:39 +0000)]
Execute content filters through execute_content_filter().
Fabian Keil [Fri, 28 Sep 2007 16:38:55 +0000 (16:38 +0000)]
- Execute content filters through execute_content_filter().
- Add prepare_for_filtering() so filter functions don't have to
care about de-chunking and decompression. As a side effect this enables
decompression for gif_deanimate_response() and jpeg_inspect_response().
- Change remove_chunked_transfer_coding()'s return type to jb_err.
Some clowns feel like chunking empty responses in which case
(size == 0) is valid but previously would be interpreted as error.
Fabian Keil [Sat, 22 Sep 2007 16:23:25 +0000 (16:23 +0000)]
Update copyright line.
Fabian Keil [Sat, 22 Sep 2007 16:17:19 +0000 (16:17 +0000)]
Move our includes below system includes to prevent macro conflicts.
Fabian Keil [Sat, 22 Sep 2007 16:15:34 +0000 (16:15 +0000)]
- Let it compile with pcc.
- Move our includes below system includes to prevent macro conflicts.
Fabian Keil [Sat, 22 Sep 2007 16:01:42 +0000 (16:01 +0000)]
Update embedded show-url-info output.
Fabian Keil [Wed, 19 Sep 2007 20:28:37 +0000 (20:28 +0000)]
If privoxy_strlcpy() is called with a "buffer" size
of 0, don't touch whatever destination points to.
Fabian Keil [Sat, 15 Sep 2007 13:01:31 +0000 (13:01 +0000)]
Increase listen() backlog to SOMAXCONN (or 128) to decrease
chances of dropped connections under load. Problem reported
and fix suggested by nobody in BR#
1795281.
Fabian Keil [Sun, 9 Sep 2007 18:20:20 +0000 (18:20 +0000)]
Turn privoxy_strlcpy() into a function and try to work with
b0rked snprintf() implementations too. Reported by icmp30.
Fabian Keil [Sun, 9 Sep 2007 15:10:51 +0000 (15:10 +0000)]
Update defaults; add two fast-redirects exceptions.
Fabian Keil [Sat, 8 Sep 2007 14:25:48 +0000 (14:25 +0000)]
Refactor client_referrer() and add conditional-forge parameter.
Fabian Keil [Tue, 4 Sep 2007 15:08:48 +0000 (15:08 +0000)]
Initialize req to NULL to make sure it's defined if the
first read_socket() call fails. Reported by icmp30.
Fabian Keil [Sun, 2 Sep 2007 15:31:20 +0000 (15:31 +0000)]
Move match_portlist() from filter.c to urlmatch.c.
It's used for url matching, not for filtering.
Fabian Keil [Sun, 2 Sep 2007 13:42:11 +0000 (13:42 +0000)]
- Allow port lists in url patterns.
- Ditch unused url_spec member pathlen.
Fabian Keil [Sun, 2 Sep 2007 12:44:17 +0000 (12:44 +0000)]
Remove newline at the end of a log_error() message.
Fabian Keil [Sat, 1 Sep 2007 11:06:04 +0000 (11:06 +0000)]
Stop disabling actions here, they are off by default.
Read the proposal on ijbswa-developers@ for details.
Fabian Keil [Tue, 28 Aug 2007 18:21:03 +0000 (18:21 +0000)]
A bunch of whitespace fixes, pointy hat to me.
Fabian Keil [Tue, 28 Aug 2007 18:16:32 +0000 (18:16 +0000)]
Fix possible memory corruption in server_http, make sure it's not
executed for ordinary server headers and mark some problems for later.
Fabian Keil [Mon, 27 Aug 2007 16:09:55 +0000 (16:09 +0000)]
Fix --pre-chroot-nslookup description which I failed to
copy and paste properly. Reported by Stephen Gildea.
Fabian Keil [Sun, 26 Aug 2007 16:47:14 +0000 (16:47 +0000)]
Add Stephen Gildea's --pre-chroot-nslookup patch [#
1276666],
extensive comments moved to user manual.
Fabian Keil [Sun, 26 Aug 2007 14:59:49 +0000 (14:59 +0000)]
Minor rewordings and fixes.
Fabian Keil [Sat, 25 Aug 2007 14:42:40 +0000 (14:42 +0000)]
Don't crash if a broken header filter wiped out the request line.
Fabian Keil [Mon, 20 Aug 2007 17:09:32 +0000 (17:09 +0000)]
Fix byte_count calculation in case of flushes
and don't parse the server headers a second time.
Fabian Keil [Sun, 19 Aug 2007 13:13:31 +0000 (13:13 +0000)]
- If there's a connection problem after we already forwarded
parts of the original content, just hang up. Fixes BR#
1776724.
- Fix warnings about unused code on mingw32.
- In case of flushes, calculate the byte count
less incorrectly (I think).
Fabian Keil [Sun, 19 Aug 2007 12:32:34 +0000 (12:32 +0000)]
Fix a conversion warning.
Fabian Keil [Sat, 18 Aug 2007 14:37:27 +0000 (14:37 +0000)]
Ditch hex_to_byte() in favour of xtoi().
Fabian Keil [Sat, 18 Aug 2007 14:34:27 +0000 (14:34 +0000)]
Make xtoi() extern so it can be used in pcrs.c.
Fabian Keil [Sat, 18 Aug 2007 14:30:32 +0000 (14:30 +0000)]
Let content-type-overwrite{} honour force-text-mode again.
hal9 [Fri, 17 Aug 2007 12:52:29 +0000 (12:52 +0000)]
Add tribalfusion/ctxt which is just like intellitxt
Fabian Keil [Wed, 15 Aug 2007 17:22:20 +0000 (17:22 +0000)]
Add two fast-redirects exceptions.
Fabian Keil [Sat, 11 Aug 2007 16:54:12 +0000 (16:54 +0000)]
- Complete the changes from r1.42.
- Make crude-parental less sensitive to the amount of white-space,
add the note that it doesn't work too well again and replace the
DMOZ link with a less confusing explanation.
Fabian Keil [Sat, 11 Aug 2007 14:49:49 +0000 (14:49 +0000)]
- Add prototpyes for the header parsers and make them static.
- Comment out client_accept_encoding_adder() which isn't used right now.
Fabian Keil [Sat, 11 Aug 2007 14:47:26 +0000 (14:47 +0000)]
Remove the prototypes for functions that are only
used in parsers.c and thus should be static.
Fabian Keil [Sat, 11 Aug 2007 14:43:22 +0000 (14:43 +0000)]
Add some more prototypes for static functions.
Fabian Keil [Sun, 5 Aug 2007 15:37:55 +0000 (15:37 +0000)]
- Don't claim that thousands of people read our code.
- Specify the GPL version and link to GPLv2 instead of v3.
- Note that configuration syntax may change between releases.
- Mention zlib support.
- Answer the "transparent proxy" question properly.
- Add "intercepting proxy" entry.
- Mention Polipo.
- Rephrase some other sentences for various reasons.
Fabian Keil [Sun, 5 Aug 2007 15:19:50 +0000 (15:19 +0000)]
- Don't claim HTTP/1.1 compliance.
- Use $ in some of the path pattern examples.
- Use a hide-user-agent example argument without
leading and trailing space.
- Make it clear that the cookie actions work with
HTTP cookies only.
- Rephrase the inspect-jpegs text to underline
that it's only meant to protect against a single
exploit.
Fabian Keil [Sun, 5 Aug 2007 14:02:09 +0000 (14:02 +0000)]
#
1763173 from Stefan Huehner: declare unload_configfile() static.
Fabian Keil [Sun, 5 Aug 2007 13:58:19 +0000 (13:58 +0000)]
Comment out request_contains_null_bytes() until it's used again.
Fabian Keil [Sun, 5 Aug 2007 13:53:14 +0000 (13:53 +0000)]
#
1763173 from Stefan Huehner: declare some more functions
static and use void instead of empty parameter lists.
Fabian Keil [Sun, 5 Aug 2007 13:50:26 +0000 (13:50 +0000)]
#
1763173 from Stefan Huehner: s@const static@static const@
and declare some more functions static.
Fabian Keil [Sun, 5 Aug 2007 13:47:04 +0000 (13:47 +0000)]
#
1763173 from Stefan Huehner: s@const static@static const@.
Fabian Keil [Sun, 5 Aug 2007 13:42:23 +0000 (13:42 +0000)]
#
1763173 from Stefan Huehner: declare some more functions static.
Fabian Keil [Sat, 4 Aug 2007 10:15:51 +0000 (10:15 +0000)]
Use strlcpy() instead of strcpy().
Fabian Keil [Sat, 4 Aug 2007 09:56:23 +0000 (09:56 +0000)]
- Log rejected CONNECT requests with LOG_LEVEL_INFO
and explain why they were rejected in the first place.
- Fix the LOG_LEVEL_CLF message for crunches of unallowed
CONNECT requests. The request line was missing.
- Add two more XXX reminders as we don't have enough already.
hal9 [Thu, 2 Aug 2007 10:48:55 +0000 (10:48 +0000)]
Broadening scope of bwp.* ads.
proactivesvcs [Tue, 31 Jul 2007 07:16:08 +0000 (07:16 +0000)]
Replaced missing .microsoft.com/.*/adschema/
Fabian Keil [Mon, 30 Jul 2007 16:42:21 +0000 (16:42 +0000)]
Move the method check into unknown_method()
and loop through the known methods instead
of using a screen-long OR chain.
proactivesvcs [Mon, 30 Jul 2007 15:47:11 +0000 (15:47 +0000)]
Addition to rule covering tracker #
1637648
Fabian Keil [Sat, 28 Jul 2007 12:30:04 +0000 (12:30 +0000)]
Modified patch from Song Weijia (#
1762559) to
fix socks requests on big-endian platforms.
hal9 [Fri, 27 Jul 2007 10:57:35 +0000 (10:57 +0000)]
Add references for user-agent strings for hide-user-agenet
hal9 [Mon, 23 Jul 2007 10:36:16 +0000 (10:36 +0000)]
Actionsfile feedback item #
1757121 2007-07-19: .microsoft.com/.*/adschema/
Fabian Keil [Sat, 21 Jul 2007 12:19:50 +0000 (12:19 +0000)]
If show-url-info is called with an URL that Privoxy
would reject as invalid, don't show unresolved forwarding
variables, "final matches" or claim the site's secure.
Fabian Keil [Sat, 21 Jul 2007 11:53:40 +0000 (11:53 +0000)]
Mention new config option "allow-cgi-request-crunching".
Fabian Keil [Sat, 21 Jul 2007 11:51:36 +0000 (11:51 +0000)]
As Hal noticed, checking dispatch_cgi() as the last cruncher
looks like a bug if CGI requests are blocked unintentionally,
so don't do it unless the user enabled the new config option
"allow-cgi-request-crunching".
hal9 [Wed, 18 Jul 2007 22:48:10 +0000 (22:48 +0000)]
Submit new version of manual so some of Fabians work has some documentation.
hal9 [Wed, 18 Jul 2007 11:06:56 +0000 (11:06 +0000)]
Replace notarget with '' in all popups filter to keep from breaking xhmtl per
report from Siegfried Gipp.
hal9 [Wed, 18 Jul 2007 11:00:34 +0000 (11:00 +0000)]
Add misc note about valid mark-up in Privoxy.
Fabian Keil [Sat, 14 Jul 2007 08:01:58 +0000 (08:01 +0000)]
s@failiure@failure@
Fabian Keil [Sat, 14 Jul 2007 07:56:51 +0000 (07:56 +0000)]
Add destination rewriting and the fix for BR#
1750917.
Fabian Keil [Sat, 14 Jul 2007 07:46:41 +0000 (07:46 +0000)]
- Allow to rewrite the request destination behind the client's back.
- Turn the weird-looking unconditional for loop that
reads the client request into a conditional while loop.
Move the stuff that only runs once out of the loop.
- Move parts of chat(), server_content_type() and the
necessary stuff to fix BR#
1750917 into get_filter_function().
Fabian Keil [Sat, 14 Jul 2007 07:38:19 +0000 (07:38 +0000)]
Move the ACTION_FORCE_TEXT_MODE check out of
server_content_type(). Signal other functions
whether or not a content type has been declared.
Part of the fix for BR#
1750917.
Fabian Keil [Sat, 14 Jul 2007 07:31:26 +0000 (07:31 +0000)]
Add new csp->content_type flag (CT_DECLARED).
Fabian Keil [Sat, 14 Jul 2007 07:28:47 +0000 (07:28 +0000)]
Add translation function for JB_ERR_FOO codes.
proactivesvcs [Wed, 11 Jul 2007 11:04:56 +0000 (11:04 +0000)]
clickdensity.com JS tracking
proactivesvcs [Wed, 11 Jul 2007 06:58:16 +0000 (06:58 +0000)]
parcelforce.com delivery tracker unblocker
proactivesvcs [Tue, 10 Jul 2007 09:29:53 +0000 (09:29 +0000)]
atdmt.com amendment per Actionsfile feedback #
1751020
mediaplex.com amendment per Actionsfile feedback #
1749013
Removed duplicated view.atdmt.com, obsolete view.atdmt.com, obsolete web.archive.org
hal9 [Mon, 9 Jul 2007 22:20:30 +0000 (22:20 +0000)]
Fine tune the unblock for Adiumx.
hal9 [Sun, 8 Jul 2007 11:06:36 +0000 (11:06 +0000)]
Add img.direttrack.com per Actionsfile feedback item #
1749870.
Fabian Keil [Sun, 1 Jul 2007 13:29:54 +0000 (13:29 +0000)]
Add limited hex notation support for the PCRS
substitution text ('\x7e' = '~'). Closes #
1627140.
Fabian Keil [Sun, 17 Jun 2007 16:12:22 +0000 (16:12 +0000)]
#ifdef _WIN32 the last commit. According to David Shaw,
one of the gnupg developers, the changes are mingw32-specific.
hal9 [Fri, 15 Jun 2007 11:01:27 +0000 (11:01 +0000)]
New block for bwp.zdnet. per feedback request.
hal9 [Thu, 14 Jun 2007 10:53:02 +0000 (10:53 +0000)]
Add block for js.adsonar.com per feedback request.
hal9 [Wed, 13 Jun 2007 10:26:26 +0000 (10:26 +0000)]
Linuxinsider banner ads.
Fabian Keil [Sun, 10 Jun 2007 14:59:59 +0000 (14:59 +0000)]
Change replacement timegm() to better match our style, plug a small
but guaranteed memory leak and fix "time zone breathing" on mingw32.
Fabian Keil [Sat, 9 Jun 2007 12:35:54 +0000 (12:35 +0000)]
Add /usr/xpg4/bin to the PATH to make sure the POSIX
version of id is used on Solaris. Closes BR#
1733788.
Thanks to Brent Chivers for report and fix.
Fabian Keil [Thu, 7 Jun 2007 12:36:22 +0000 (12:36 +0000)]
Apply Roland's 29_usermanual.dpatch to fix a bunch
of syntax errors I collected over the last months.
Roland Rosenfeld [Thu, 7 Jun 2007 10:41:02 +0000 (10:41 +0000)]
Add changes from 3.0.6-2, 3.0.6-3 and several unreleased changes
according to CVS as of 2007-06-07.
Fabian Keil [Sun, 3 Jun 2007 18:45:18 +0000 (18:45 +0000)]
Temporary workaround for BR#
1730105.