Fabian Keil [Sun, 4 Nov 2007 19:03:01 +0000 (19:03 +0000)]
Fix another deadlock Hal spotted and that mysteriously didn't affect FreeBSD.
hal9 [Sun, 4 Nov 2007 18:11:50 +0000 (18:11 +0000)]
Catching up html with sgml.
Fabian Keil [Sun, 4 Nov 2007 16:15:11 +0000 (16:15 +0000)]
- Add client-header taggers: client-ip-address,
http-method, allow-post, complete-url and user-agent.
- Add server-header tagger: content-type.
hal9 [Sun, 4 Nov 2007 15:16:40 +0000 (15:16 +0000)]
Fix one silly typo.
hal9 [Sun, 4 Nov 2007 15:12:47 +0000 (15:12 +0000)]
Various minor adjustments.
Fabian Keil [Sat, 3 Nov 2007 19:03:31 +0000 (19:03 +0000)]
- Prevent the Windows GUI from showing the version two times in a row.
- Stop using the imperative in the "(Re-)Open logfile" message.
- Ditch the "Switching to daemon mode" message as the detection
whether or not we're already in daemon mode doesn't actually work.
Fabian Keil [Sat, 3 Nov 2007 17:34:49 +0000 (17:34 +0000)]
Log the "weak randomization factor" warning only
once for mingw32 and provide some more details.
Fabian Keil [Sat, 3 Nov 2007 15:05:30 +0000 (15:05 +0000)]
Consistently use an empty line between the description and the PCRS code
and end descriptions with dots. Patch submitted by Simon Ruderich.
Fabian Keil [Sat, 3 Nov 2007 14:35:45 +0000 (14:35 +0000)]
Fix spelling in Purpose line. Patch submitted by Simon Ruderich.
Fabian Keil [Sat, 3 Nov 2007 14:31:27 +0000 (14:31 +0000)]
Spelling fixes submitted by Simon Ruderich.
Fabian Keil [Sat, 3 Nov 2007 14:29:41 +0000 (14:29 +0000)]
Spelling fixes mostly submitted by Simon Ruderich.
Fabian Keil [Sat, 3 Nov 2007 14:25:33 +0000 (14:25 +0000)]
Spelling patch submitted by Simon Ruderich.
hal9 [Sat, 3 Nov 2007 12:34:23 +0000 (12:34 +0000)]
Fix silly typos.
hal9 [Sat, 3 Nov 2007 12:22:37 +0000 (12:22 +0000)]
Minor notes for pending release.
hal9 [Sat, 3 Nov 2007 12:08:18 +0000 (12:08 +0000)]
Add 'action' suffix to actions files as temp fix until 3.0.7 is out.
Fabian Keil [Fri, 2 Nov 2007 16:52:50 +0000 (16:52 +0000)]
Remove a "can't happen" error block which, over
time, mutated into a "guaranteed to happen" block.
Fabian Keil [Thu, 1 Nov 2007 18:20:58 +0000 (18:20 +0000)]
Initialize log module after initializing mutexes, future
deadlocks in that code should now work cross-platform.
Fabian Keil [Thu, 1 Nov 2007 12:50:56 +0000 (12:50 +0000)]
Here's looking at you, deadlock.
Fabian Keil [Tue, 30 Oct 2007 20:47:47 +0000 (20:47 +0000)]
Add some more changes.
Fabian Keil [Tue, 30 Oct 2007 19:03:41 +0000 (19:03 +0000)]
Migrate a bunch of contributors I previously added to the
wrong file (the one that gets overwritten by this one). Doh.
Fabian Keil [Tue, 30 Oct 2007 17:59:31 +0000 (17:59 +0000)]
- Bump p-version, p-status and copyright date.
- Mention that the manual is out of date.
- Don't use examples with HardToReadCamelCase after
explaining that we actually don't like that.
- Minor cosmetics.
Fabian Keil [Tue, 30 Oct 2007 17:49:04 +0000 (17:49 +0000)]
- Bump copyright date.
- Add Vista to the list of Windows versions Privoxy has
been reported to run on.
- Don't refer to GNU/Linux distributions with the name
of their kernel. It makes RMS sad.
Fabian Keil [Tue, 30 Oct 2007 17:39:21 +0000 (17:39 +0000)]
Mention that the mailing lists are moderated now,
that it makes sense to at least provide a nickname
when filing a PR and note a bunch of other things
once could do before filing a duplicate.
Fabian Keil [Sun, 28 Oct 2007 19:04:21 +0000 (19:04 +0000)]
Don't mention daemon mode in "Logging disabled" message. Some
platforms call it differently and it's not really relevant anyway.
Fabian Keil [Sat, 27 Oct 2007 15:14:16 +0000 (15:14 +0000)]
Change Tor links to use the new domain torproject.org.
Fabian Keil [Sat, 27 Oct 2007 13:32:23 +0000 (13:32 +0000)]
Plug minor 5-year-old memory leak. Spotted by
Valgrind and triggered by Privoxy-Regression-Test.
Fabian Keil [Sat, 27 Oct 2007 13:12:13 +0000 (13:12 +0000)]
Finish 1.49 and check write access before
showing edit buttons on show-url-info page.
Fabian Keil [Sat, 27 Oct 2007 13:02:27 +0000 (13:02 +0000)]
Relocate daemon-mode-related log messages to make sure
they aren't shown again in case of configuration reloads.
Fabian Keil [Tue, 23 Oct 2007 20:12:45 +0000 (20:12 +0000)]
Fix first CSUCCEED line to end in \r\n as required by RFC1945.
Reported by Bert van Leeuwen in BR#
1818808.
Fabian Keil [Mon, 22 Oct 2007 19:47:05 +0000 (19:47 +0000)]
- Bump version and copyright.
- Adjust Tor section to make it clear that forward exceptions
aren't required and may not even be desired.
- A bunch of other minor rewordings.
- Fix markup problems Roland noticed (hopefully without adding new ones).
Fabian Keil [Sun, 21 Oct 2007 17:08:28 +0000 (17:08 +0000)]
Bump copyright.
Roland Rosenfeld [Sun, 21 Oct 2007 12:10:44 +0000 (12:10 +0000)]
Merge changes from Debian revision 3.0.6-4.
Roland Rosenfeld [Sun, 21 Oct 2007 12:01:33 +0000 (12:01 +0000)]
adapted to 3.0.6 by Petr PÃsa?? petrp@users.sf.net found on
http://xpisar.wz.cz/privoxy-ipv6/ Use privoxy-3.0.6-stable-ipv6.diff.bz2
and stripped. This is not 3.0.7 compatible yet, but a step forward.
Fabian Keil [Fri, 19 Oct 2007 17:00:08 +0000 (17:00 +0000)]
Downgrade "Flushing header and buffers" message to LOG_LEVEL_INFO.
Fabian Keil [Fri, 19 Oct 2007 16:56:26 +0000 (16:56 +0000)]
- Downgrade "Buffer limit reached" message to LOG_LEVEL_INFO.
- Use shiny new content_filters_enabled() in client_range().
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().