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.
Fabian Keil [Sat, 2 Jun 2007 14:05:07 +0000 (14:05 +0000)]
Add various changes made in the last three months.
Fabian Keil [Sat, 2 Jun 2007 14:01:37 +0000 (14:01 +0000)]
Start to document forward-override{}.
Fabian Keil [Fri, 1 Jun 2007 18:16:36 +0000 (18:16 +0000)]
Use the same mutex for gethostbyname() and gethostbyaddr() to prevent
deadlocks and crashes on OpenBSD and possibly other OS with neither
gethostbyname_r() nor gethostaddr_r(). Closes BR#
1729174.
Thanks to Ralf Horstmann for report and solution.
Fabian Keil [Fri, 1 Jun 2007 16:54:28 +0000 (16:54 +0000)]
Add forward-override{} to change the forwarding settings through
action sections. This is mainly interesting to forward different
clients differently (for example based on User-Agent or request
origin).
Fabian Keil [Fri, 1 Jun 2007 16:53:05 +0000 (16:53 +0000)]
Adjust cgi_show_url_info() to show what forward-override{}
would do with the requested URL (instead of showing how the
request for the CGI page would be forwarded if it wasn't a
CGI request).
Fabian Keil [Fri, 1 Jun 2007 16:41:11 +0000 (16:41 +0000)]
Add forward-override{} to change the forwarding settings through
action sections. This is mainly interesting to forward different
clients differently (for example based on User-Agent or request
origin).
Fabian Keil [Fri, 1 Jun 2007 16:31:55 +0000 (16:31 +0000)]
Change sed() to return a jb_err in preparation for forward-override{}.
Fabian Keil [Fri, 1 Jun 2007 14:17:04 +0000 (14:17 +0000)]
Mention possible delimiter conflicts with variables in dynamic pcrs commands.
Fabian Keil [Fri, 1 Jun 2007 14:14:29 +0000 (14:14 +0000)]
Adjust actionsfile directives to use complete file names.
Fabian Keil [Fri, 1 Jun 2007 14:12:38 +0000 (14:12 +0000)]
Add unload_forward_spec() in preparation for forward-override{}.
Fabian Keil [Thu, 31 May 2007 11:50:20 +0000 (11:50 +0000)]
Re-enable support for old-school URLs like
http://config.privoxy.org/edit-actions-list?f=default
in the action editor.
They are no longer used by the CGI pages, but make it easier
to reach the editor directly, without knowing the requested
file's index in csp->config->actions_file[].
Fabian Keil [Sun, 27 May 2007 12:39:32 +0000 (12:39 +0000)]
Adjust "X-Filter: No" to disable dedicated header filters.
Fabian Keil [Sun, 27 May 2007 12:38:08 +0000 (12:38 +0000)]
- Remove some left-overs from the switch to dedicated header filters.
- Adjust "X-Filter: No" to disable dedicated header filters.
- Prepare for forward-override{}
Fabian Keil [Thu, 24 May 2007 17:03:50 +0000 (17:03 +0000)]
- Let usage() mention the --chroot parameter.
- Use read_socket() consistently and always leave
the last buffer byte alone, even in cases where
null termination (currently) doesn't matter.
Fabian Keil [Thu, 24 May 2007 13:38:45 +0000 (13:38 +0000)]
Two minor fixes.
Fabian Keil [Mon, 21 May 2007 10:58:43 +0000 (10:58 +0000)]
Make it harder to think the forwarded-connect-retries
option would be limited to CONNECT requests.
Fabian Keil [Mon, 21 May 2007 10:54:46 +0000 (10:54 +0000)]
- Use strlcpy() instead of strcpy().
- Stop treating actions files special. Expect a complete file name
(with or without path) like it's done for the rest of the files.
Closes FR#588084.
- Don't rerun sed() in cgi_show_request().
Fabian Keil [Mon, 21 May 2007 10:44:08 +0000 (10:44 +0000)]
- Use strlcpy() instead of strcpy().
- Stop treating actions files special. Expect a complete file name
(with or without path) like it's done for the rest of the files.
Closes FR#588084.
- Remove an unnecessary temporary memory allocation.
- Don't log anything to the console when running as
daemon and no errors occurred.
Fabian Keil [Mon, 21 May 2007 10:26:50 +0000 (10:26 +0000)]
- Use strlcpy() instead of strcpy().
- Provide a reason why loading the actions
file might have failed.
Fabian Keil [Thu, 17 May 2007 15:55:36 +0000 (15:55 +0000)]
Undo an improperly tested last-minute change
and turn "text-requests" back into "css-requests".
Fabian Keil [Thu, 17 May 2007 15:53:57 +0000 (15:53 +0000)]
Undo an improperly tested last-minute change.
Fabian Keil [Thu, 17 May 2007 15:45:41 +0000 (15:45 +0000)]
- Mention new filter types and the 'D' option.
- Header filters are now case-insensitive and accept a
varying amount of whitespace after the colon.
- Add another selector for yahoo ads.
- New server-header filter: less-download-windows
- New client-header taggers: text-requests and image-requests.
Fabian Keil [Thu, 17 May 2007 15:37:00 +0000 (15:37 +0000)]
- Add fast-redirect exception for del.icio.us/.
- Remove the recently added overwrite-last-modified
exception for URLs that look as if they might be
handled through download managers. Given that
Privoxy supports tags now the user can easily make
exceptions based on the User-Agent.
- Add sections that modify the handle-as-* sections
based on tags.
Fabian Keil [Wed, 16 May 2007 14:59:46 +0000 (14:59 +0000)]
- Fix config file loading on Unix if no config file is specified.
Since r1.97 Privoxy would always interpret the last argument as
config file, even if it's a valid command line option.
- Abort in case of unrecognized command line options. Closes #
1719696.
- Remove a bunch of unnecessary strcpy() calls (yay for c&p without thinking).
- Replace the remaining strcpy() and strcat() calls with strlcpy() and strcat().
Fabian Keil [Mon, 14 May 2007 17:19:42 +0000 (17:19 +0000)]
Minor rewordings and fixes.
Fabian Keil [Mon, 14 May 2007 17:09:56 +0000 (17:09 +0000)]
- Enlist Fedora Core and OpenBSD.
- Update Solaris maintainer.
- List Redhat only once.
- Mark SuSE and Redhat as outdated.
- Remove HP-UX, Conectiva, NetBSD and Gentoo
Linux as the responsible maintainers seem to
be MIA and there aren't even packages for 3.0.3
available.
Fabian Keil [Mon, 14 May 2007 16:56:07 +0000 (16:56 +0000)]
- Stop using strcpy().
- enlist_unique_header() now behaves as advertised
and checks for existing headers with the same name
but ignores the values.
Fabian Keil [Mon, 14 May 2007 10:41:15 +0000 (10:41 +0000)]
Ditch the csp member cookie_list[] which isn't used anymore.
Fabian Keil [Mon, 14 May 2007 10:33:51 +0000 (10:33 +0000)]
- Use strlcpy() and strlcat() instead of strcpy() and strcat().
Fabian Keil [Mon, 14 May 2007 10:23:48 +0000 (10:23 +0000)]
- Use strlcpy() instead of strcpy().
- Use the same buffer for socks requests and socks responses.
- Fix bogus warning about web_server_addr being used uninitialized.
Fabian Keil [Mon, 14 May 2007 10:16:41 +0000 (10:16 +0000)]
Streamline client_cookie_adder().
Fabian Keil [Fri, 11 May 2007 11:51:34 +0000 (11:51 +0000)]
Fix a type mismatch warning.
Fabian Keil [Fri, 11 May 2007 11:49:41 +0000 (11:49 +0000)]
Check for strlcat().
Fabian Keil [Fri, 11 May 2007 11:48:16 +0000 (11:48 +0000)]
- Delete strsav() which was replaced
by string_append() years ago.
- Add a strlcat() look-alike.
- Use strlcat() and strlcpy() in those parts
of the code that are run on unixes.
Fabian Keil [Fri, 4 May 2007 11:23:19 +0000 (11:23 +0000)]
- Don't rerun crunchers that only depend on the request URL.
- Don't count redirects and CGI requests as "blocked requests".
hal9 [Wed, 2 May 2007 10:49:46 +0000 (10:49 +0000)]
Added img.bluehost.com per Actionsfile tracker.
Fabian Keil [Mon, 30 Apr 2007 15:53:11 +0000 (15:53 +0000)]
Make sure filters with dynamic jobs actually use them.
Fabian Keil [Mon, 30 Apr 2007 15:06:26 +0000 (15:06 +0000)]
- Introduce dynamic pcrs jobs that can resolve variables.
- Remove unnecessary update_action_bits_for_all_tags() call.
Fabian Keil [Mon, 30 Apr 2007 15:03:28 +0000 (15:03 +0000)]
- Introduce dynamic pcrs jobs that can resolve variables.
- Don't run redirect functions more than once,
unless they are activated more than once.
Fabian Keil [Mon, 30 Apr 2007 15:02:19 +0000 (15:02 +0000)]
Introduce dynamic pcrs jobs that can resolve variables.
Fabian Keil [Wed, 25 Apr 2007 15:15:17 +0000 (15:15 +0000)]
Support crunching based on tags created by server-header taggers.
Fabian Keil [Wed, 25 Apr 2007 15:10:36 +0000 (15:10 +0000)]
- Describe installation for FreeBSD.
- Start to document taggers and tag patterns.
- Don't confuse devils and daemons.
Fabian Keil [Sun, 22 Apr 2007 13:24:50 +0000 (13:24 +0000)]
Make HTTP snippets static (again). Add a Content-Type for those
with content so the browser doesn't guess it based on the URL.
Fabian Keil [Sun, 22 Apr 2007 13:18:06 +0000 (13:18 +0000)]
Keep the HTTP snippets local.
Fabian Keil [Thu, 19 Apr 2007 13:47:34 +0000 (13:47 +0000)]
Move crunching and request line rebuilding out of chat().
Fabian Keil [Wed, 18 Apr 2007 16:51:09 +0000 (16:51 +0000)]
Now that header parsing comes before crunching,
hide-referrer has to be disabled for the CGI pages.
Fabian Keil [Tue, 17 Apr 2007 18:32:10 +0000 (18:32 +0000)]
- Make tagging based on tags set by earlier taggers
of the same kind possible.
- Log whether or not new tags cause action bits updates
(in which case a matching tag-pattern section exists).
- Log if the user tries to set a tag that is already set.