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

12 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

12 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.

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

12 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.

12 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

12 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.

12 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

12 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.

12 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.

12 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

12 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

12 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

12 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

12 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

12 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.

12 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.

12 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

12 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.

12 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.

12 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()

12 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.

12 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.

12 years agoAdd missing white-space behind if's and the following parentheses
Fabian Keil [Fri, 9 Mar 2012 16:24:36 +0000 (16:24 +0000)]
Add missing white-space behind if's and the following parentheses

12 years agoFix white-space around parentheses
Fabian Keil [Fri, 9 Mar 2012 16:23:50 +0000 (16:23 +0000)]
Fix white-space around parentheses

12 years agoAdd #101: Forward known client headers in a predefined order
Fabian Keil [Fri, 9 Mar 2012 16:22:24 +0000 (16:22 +0000)]
Add #101: Forward known client headers in a predefined order

12 years agoUnblock adjamblog.wordpress.com/ and adjamblog.files.wordpress.com/
Fabian Keil [Tue, 6 Mar 2012 18:36:02 +0000 (18:36 +0000)]
Unblock adjamblog.wordpress.com/ and adjamblog.files.wordpress.com/

Reported by Ryan Farmer in #3496116.

12 years agoAdd Ian to the team
Ian Silvester [Mon, 5 Mar 2012 00:37:40 +0000 (00:37 +0000)]
Add Ian to the team

12 years agoAdd Ian to the team
Fabian Keil [Sun, 4 Mar 2012 11:55:42 +0000 (11:55 +0000)]
Add Ian to the team

12 years agoBump copyright
Fabian Keil [Sun, 4 Mar 2012 11:54:22 +0000 (11:54 +0000)]
Bump copyright

12 years agoUpdate 'Signals' section, the only explicitly handled signals are SIGINT, SIGTERM...
Fabian Keil [Sun, 4 Mar 2012 11:54:00 +0000 (11:54 +0000)]
Update 'Signals' section, the only explicitly handled signals are SIGINT, SIGTERM and SIGHUP

12 years agoReplace strdup() calls with strdup_or_die() calls where it's safe and simplifies...
Fabian Keil [Sun, 4 Mar 2012 11:53:26 +0000 (11:53 +0000)]
Replace strdup() calls with strdup_or_die() calls where it's safe and simplifies the code

12 years agoAdd strdup_or_die() which will allow to simplify code paths were strdup() failures...
Fabian Keil [Sun, 4 Mar 2012 11:52:45 +0000 (11:52 +0000)]
Add strdup_or_die() which will allow to simplify code paths were strdup() failures don't need to be handled gracefully

12 years agoUse privoxy_tolower() instead of vanilla tolower() with manual casting of the argument
Fabian Keil [Sun, 4 Mar 2012 11:51:49 +0000 (11:51 +0000)]
Use privoxy_tolower() instead of vanilla tolower() with manual casting of the argument

12 years agoRename ijb_foo macros to privoxy_foo
Fabian Keil [Sun, 4 Mar 2012 11:51:25 +0000 (11:51 +0000)]
Rename ijb_foo macros to privoxy_foo

12 years agoRelocate ijb_isdigit()'s definition to project.h
Fabian Keil [Sun, 4 Mar 2012 11:50:32 +0000 (11:50 +0000)]
Relocate ijb_isdigit()'s definition to project.h

12 years agoRephrase a comment
Fabian Keil [Sun, 4 Mar 2012 11:49:44 +0000 (11:49 +0000)]
Rephrase a comment

12 years agoRelocate ijb_isupper()'s definition to project.h and get the ijb_tolower() definition...
Fabian Keil [Sun, 4 Mar 2012 11:49:24 +0000 (11:49 +0000)]
Relocate ijb_isupper()'s definition to project.h and get the ijb_tolower() definition from there, too

12 years agoShorten bindup()
Fabian Keil [Sun, 4 Mar 2012 11:48:54 +0000 (11:48 +0000)]
Shorten bindup()

12 years agoFix hash_string()'s description
Fabian Keil [Sun, 4 Mar 2012 11:48:34 +0000 (11:48 +0000)]
Fix hash_string()'s description

As far as Privoxy is concerned the function only has
one use case. Whether or not it's anyone's favorite
is not particularly important.

Also the documented return code type didn't match reality.

12 years agoRemove the ijb_isupper() and ijb_tolower() macros which aren't used in this file
Fabian Keil [Sun, 4 Mar 2012 11:47:54 +0000 (11:47 +0000)]
Remove the ijb_isupper() and ijb_tolower() macros which aren't used in this file

12 years agoChange the hashes used in load_config() to unsigned int
Fabian Keil [Sun, 4 Mar 2012 11:47:21 +0000 (11:47 +0000)]
Change the hashes used in load_config() to unsigned int

That's what hash_string() actually returns and using
a potentiallly larger type is at best useless.

On my FreeBSD amd64 system this reduces the size of the
binary by only 128 bytes, but with a compiler that sucks
harder at optimization it could be a bit more.

12 years agoShorten zalloc()'s description to the part that makes sense (to me)
Fabian Keil [Sun, 4 Mar 2012 11:41:57 +0000 (11:41 +0000)]
Shorten zalloc()'s description to the part that makes sense (to me)

12 years agoLet enlist_unique_header() verify that the caller didn't pass a header containing...
Fabian Keil [Sun, 4 Mar 2012 11:41:32 +0000 (11:41 +0000)]
Let enlist_unique_header() verify that the caller didn't pass a header containing either \r or \n

12 years agoIn socks5_connect(), do not try to print a negative number ...
Fabian Keil [Wed, 29 Feb 2012 19:35:11 +0000 (19:35 +0000)]
In socks5_connect(), do not try to print a negative number ...

... of socks response bytes if the read() for the socks5
negotiation failed completely.

It's an API violation and can trigger an assert() in
debug builds with "debug 2" enabled. Except for the
assert(), log_error() already handled negative %N values
gracefully so this commit only makes a difference for
debug builds.

12 years agoTurn family mismatches in match_sockaddr() into fatal errors
Fabian Keil [Wed, 29 Feb 2012 19:34:04 +0000 (19:34 +0000)]
Turn family mismatches in match_sockaddr() into fatal errors

12 years agoRename action_name's member takes_value to value_type as it isn't used as boolean
Fabian Keil [Wed, 29 Feb 2012 19:33:07 +0000 (19:33 +0000)]
Rename action_name's member takes_value to value_type as it isn't used as boolean

12 years agoUse an enum for the type of the action value.
Fabian Keil [Wed, 29 Feb 2012 19:31:12 +0000 (19:31 +0000)]
Use an enum for the type of the action value.

12 years agoBlock 'optimize.indieclick.com/' and 'optimized-by.rubiconproject.com/'
Fabian Keil [Wed, 29 Feb 2012 19:28:14 +0000 (19:28 +0000)]
Block 'optimize.indieclick.com/' and 'optimized-by.rubiconproject.com/'

12 years agoFix spelling of 'unknown' in default_exports()
Fabian Keil [Sat, 31 Dec 2011 14:54:28 +0000 (14:54 +0000)]
Fix spelling of 'unknown' in default_exports()

Seen in Roland's 29_typos.dpatch.

12 years agoFix 'resource' spelling in the code as well
Fabian Keil [Sat, 31 Dec 2011 14:54:05 +0000 (14:54 +0000)]
Fix 'resource' spelling in the code as well

12 years agoFix 'resource' spelling in the documentation
Fabian Keil [Sat, 31 Dec 2011 14:53:47 +0000 (14:53 +0000)]
Fix 'resource' spelling in the documentation

Seen in Roland's 29_typos.dpatch.

12 years agoRemove a duplicated dot in a comment
Fabian Keil [Sat, 31 Dec 2011 14:53:18 +0000 (14:53 +0000)]
Remove a duplicated dot in a comment

12 years agoRedirect requests for http://config.privoxy.org/.* to http://www.privoxy.org/config/
Fabian Keil [Sat, 31 Dec 2011 14:52:48 +0000 (14:52 +0000)]
Redirect requests for config.privoxy.org/.* to http://privoxy.org/config/

config.privoxy.org used to be a separate server that was
administrated by Andreas, but will be relocated to the SF
webserver after the domain transfer is done.

Note that the things SF calls VHOSTS all point to the
same root directory, so we can't use a dedicated .htaccess
file for config.privoxy.org.

12 years agoAdjust attribution and fix the URL of this file on the server
Fabian Keil [Sat, 31 Dec 2011 14:51:51 +0000 (14:51 +0000)]
Adjust attribution and fix the URL of this file on the server

12 years agoManually bump the copyright range to 2011
Fabian Keil [Sat, 31 Dec 2011 14:51:15 +0000 (14:51 +0000)]
Manually bump the copyright range to 2011

12 years agoDitch the already-dead update_action_bits_for_all_tags()
Fabian Keil [Sat, 31 Dec 2011 14:50:20 +0000 (14:50 +0000)]
Ditch the already-dead update_action_bits_for_all_tags()

12 years agoFix grammar in get_action_token()'s description
Fabian Keil [Sat, 31 Dec 2011 14:49:58 +0000 (14:49 +0000)]
Fix grammar in get_action_token()'s description

12 years agoFix the description of create_forged_referrer()
Fabian Keil [Sat, 31 Dec 2011 14:49:39 +0000 (14:49 +0000)]
Fix the description of create_forged_referrer()

12 years agoBump copyright. There were various significant changes in 2010 and 2011.
Fabian Keil [Sat, 31 Dec 2011 14:49:07 +0000 (14:49 +0000)]
Bump copyright. There were various significant changes in 2010 and 2011.

12 years agoDrop the 'Functions declared include:' comment sections
Fabian Keil [Sat, 31 Dec 2011 14:47:45 +0000 (14:47 +0000)]
Drop the 'Functions declared include:' comment sections

They tend to be incomplete, incorrect and out of date
and the benefit seems questionable.

12 years agoBump version to 3.0.20 UNRELEASED
Fabian Keil [Sat, 31 Dec 2011 14:43:40 +0000 (14:43 +0000)]
Bump version to 3.0.20 UNRELEASED

12 years agoIf NI_MAXSERV isn't defined, define it to 32
Fabian Keil [Sat, 31 Dec 2011 14:43:20 +0000 (14:43 +0000)]
If NI_MAXSERV isn't defined, define it to 32

This is the workaround Lee used to be able to
compile with --disable-ipv6-support on Windows.

12 years agoSeveral changes from Debian package 3.0.12 to 3.0.19-1.
Roland Rosenfeld [Tue, 27 Dec 2011 14:55:07 +0000 (14:55 +0000)]
Several changes from Debian package 3.0.12 to 3.0.19-1.

12 years agoRebuild with the updated list of developers
Fabian Keil [Mon, 26 Dec 2011 18:43:50 +0000 (18:43 +0000)]
Rebuild with the updated list of developers

12 years agoMove Mark and Gerry to the list of former team members
Fabian Keil [Mon, 26 Dec 2011 18:41:54 +0000 (18:41 +0000)]
Move Mark and Gerry to the list of former team members

12 years agoUpdate for 3.0.19, keeping the changes from 3.0.18
Fabian Keil [Mon, 26 Dec 2011 18:30:22 +0000 (18:30 +0000)]
Update for 3.0.19, keeping the changes from 3.0.18

12 years agoRebuild for 3.0.19 stable
Fabian Keil [Mon, 26 Dec 2011 17:07:01 +0000 (17:07 +0000)]
Rebuild for 3.0.19 stable

12 years agoBump entities for 3.0.19
Fabian Keil [Mon, 26 Dec 2011 17:05:40 +0000 (17:05 +0000)]
Bump entities for 3.0.19

12 years agoBump included version to 3.0.19
Fabian Keil [Mon, 26 Dec 2011 17:04:50 +0000 (17:04 +0000)]
Bump included version to 3.0.19

12 years agoImport ChangeLog entries for 3.0.19, keeping the ones for 3.0.18 for now
Fabian Keil [Mon, 26 Dec 2011 17:04:19 +0000 (17:04 +0000)]
Import ChangeLog entries for 3.0.19, keeping the ones for 3.0.18 for now

12 years agoAdd changes for 3.0.19
Fabian Keil [Mon, 26 Dec 2011 17:03:58 +0000 (17:03 +0000)]
Add changes for 3.0.19

12 years agoChange CODE_STATUS to stable
Fabian Keil [Mon, 26 Dec 2011 17:03:31 +0000 (17:03 +0000)]
Change CODE_STATUS to stable

12 years agoBump copyright range
Fabian Keil [Mon, 26 Dec 2011 17:03:08 +0000 (17:03 +0000)]
Bump copyright range

12 years agoClarify an error message in remove_chunked_transfer_coding()
Fabian Keil [Mon, 26 Dec 2011 17:02:54 +0000 (17:02 +0000)]
Clarify an error message in remove_chunked_transfer_coding()

12 years agoPrevent an integer overflow in remove_chunked_transfer_coding() that would cause...
Fabian Keil [Mon, 26 Dec 2011 17:02:24 +0000 (17:02 +0000)]
Prevent an integer overflow in remove_chunked_transfer_coding() that would cause a segfault

It could be triggered by malicious web servers if Privoxy was
configured to filter the response and running on a platform
where SIZE_T_MAX isn't larger than UINT_MAX, which probably
includes most 32-bit systems.

On those platforms, all Privoxy versions before 3.0.19 appear
to be affected. Releases before 2.9.14 don't really count, though,
as they don't even try to sanity check the chunk size and thus
have bigger issues.

To be on the safe side, this bug should be presumed to allow
code execution as proving that it doesn't seems unrealistic.

12 years agoTry to be less misleading in the downgrade-http-version description
Fabian Keil [Mon, 26 Dec 2011 17:01:29 +0000 (17:01 +0000)]
Try to be less misleading in the downgrade-http-version description

12 years agoDo not expect a response from the SOCKS4/4A server until it got something to respond to
Fabian Keil [Sat, 24 Dec 2011 15:28:45 +0000 (15:28 +0000)]
Do not expect a response from the SOCKS4/4A server until it got something to respond to

Hohoho.

Fixes #3459781 reported by qqqqqw and tracked down by Lee.
Regression introduced in 3.0.18 by the usual suspect.

12 years agoFix an off-by-one in an error message about connect failures
Fabian Keil [Sat, 10 Dec 2011 17:26:30 +0000 (17:26 +0000)]
Fix an off-by-one in an error message about connect failures

12 years agoRemove an obsolete part of the receive_client_request() description
Fabian Keil [Sat, 10 Dec 2011 17:26:11 +0000 (17:26 +0000)]
Remove an obsolete part of the receive_client_request() description

If the client connects and doesn't say anything,
the connection will timeout.

12 years agoUpdate CODE_STATUS description
Fabian Keil [Sat, 10 Dec 2011 17:25:37 +0000 (17:25 +0000)]
Update CODE_STATUS description

Setting the version to 0.0.0 between releases makes no
sense to me, and we haven't done that for a while now.

12 years agoBump version to 3.0.19 UNRELEASED
Fabian Keil [Sat, 10 Dec 2011 17:19:55 +0000 (17:19 +0000)]
Bump version to 3.0.19 UNRELEASED

12 years agoUse a variable for the webserver root directory and update the path
Fabian Keil [Sun, 20 Nov 2011 17:17:56 +0000 (17:17 +0000)]
Use a variable for the webserver root directory and update the path

Sourceforge changed it which broke various web-related targets.

12 years agoLast minute ChangeLog changes that didn't make it into the tarball
Fabian Keil [Sun, 20 Nov 2011 17:17:17 +0000 (17:17 +0000)]
Last minute ChangeLog changes that didn't make it into the tarball

12 years agoUpdate for the 3.0.18 release
Fabian Keil [Sun, 20 Nov 2011 12:50:48 +0000 (12:50 +0000)]
Update for the 3.0.18 release

12 years agoUpdate ChangeLog. Once more, with feeling.
Fabian Keil [Sun, 20 Nov 2011 12:43:38 +0000 (12:43 +0000)]
Update ChangeLog. Once more, with feeling.

12 years agoFix spelling
Fabian Keil [Sun, 20 Nov 2011 12:42:43 +0000 (12:42 +0000)]
Fix spelling

12 years agoDocument the +fast-redirects{} HTTP response splitting fix
Fabian Keil [Sun, 20 Nov 2011 12:41:22 +0000 (12:41 +0000)]
Document the +fast-redirects{} HTTP response splitting fix

12 years agoRebuild for 3.0.18
Fabian Keil [Sat, 19 Nov 2011 15:20:45 +0000 (15:20 +0000)]
Rebuild for 3.0.18

12 years agoRebuild with recent changes
Fabian Keil [Sat, 19 Nov 2011 15:18:48 +0000 (15:18 +0000)]
Rebuild with recent changes

12 years agoUpdate ChangeLog
Fabian Keil [Sat, 19 Nov 2011 15:18:02 +0000 (15:18 +0000)]
Update ChangeLog

12 years agoUpdated contributor list
Fabian Keil [Sat, 19 Nov 2011 15:16:37 +0000 (15:16 +0000)]
Updated contributor list

12 years agoPromote a couple of general changes to bug fixes. Various cosmetical changes.
Fabian Keil [Sat, 19 Nov 2011 15:12:54 +0000 (15:12 +0000)]
Promote a couple of general changes to bug fixes. Various cosmetical changes.

12 years agoImport new contributors with real names from the ChangeLog
Fabian Keil [Sat, 19 Nov 2011 15:08:00 +0000 (15:08 +0000)]
Import new contributors with real names from the ChangeLog

12 years agoRevert the previous commit as it was a duplicate.
Fabian Keil [Sat, 19 Nov 2011 14:44:01 +0000 (14:44 +0000)]
Revert the previous commit as it was a duplicate.

12 years agoRemove an incorrect string termination attempt
Fabian Keil [Fri, 18 Nov 2011 23:53:26 +0000 (23:53 +0000)]
Remove an incorrect string termination attempt

It could cause segmentations faults when Privoxy was compiled
without RFC2553 support as *port[NI_MAXSERV - 1] isn't actually
the last position in the allocated memory region.

Given that snprintf() already produces a proper string
the attempt can simply be discarded. The bug was introduced
in 1.105 and is thus not relevant for the ChangeLog.

12 years agoUpdate ChangeLog
Fabian Keil [Fri, 18 Nov 2011 16:49:29 +0000 (16:49 +0000)]
Update ChangeLog

12 years agoReplace 'service' with the less ambiguous 'Privoxy installation'
Fabian Keil [Fri, 18 Nov 2011 16:49:05 +0000 (16:49 +0000)]
Replace 'service' with the less ambiguous 'Privoxy installation'

12 years agoRefer to the ChangeLog without going into details and don't mention a specific release
Fabian Keil [Fri, 18 Nov 2011 16:48:29 +0000 (16:48 +0000)]
Refer to the ChangeLog without going into details and don't mention a specific release

The file should now be "timeless".

While at it, downgrade the 'Important Changes' section to 'Changes'.

12 years agoDitch the unused map_copy_parameter_url()
Fabian Keil [Fri, 18 Nov 2011 16:47:08 +0000 (16:47 +0000)]
Ditch the unused map_copy_parameter_url()