privoxy.git
16 years agoRemove an incorrect assertion. The value of debug may change if
Fabian Keil [Sun, 27 Apr 2008 16:50:46 +0000 (16:50 +0000)]
Remove an incorrect assertion. The value of debug may change if
the configuration is reloaded in another thread. While we could
cache the initial value, the assertion doesn't seem worth it.

16 years agoWhite space fix for the last commit.
Fabian Keil [Sun, 27 Apr 2008 16:26:59 +0000 (16:26 +0000)]
White space fix for the last commit.

16 years agoComplain about every block action without reason found.
Fabian Keil [Sun, 27 Apr 2008 16:20:19 +0000 (16:20 +0000)]
Complain about every block action without reason found.

16 years agoMove CGI file loading code into load_file() and
Fabian Keil [Sun, 27 Apr 2008 13:52:52 +0000 (13:52 +0000)]
Move CGI file loading code into load_file() and
add checks for unexpected errors.

16 years agoFix macro name in cgi_show_file() error path.
Fabian Keil [Sat, 26 Apr 2008 15:50:56 +0000 (15:50 +0000)]
Fix macro name in cgi_show_file() error path.

16 years agoForget about JB_ERR_PARSE. JB_ERR_CGI_PARAMS to the rescue.
Fabian Keil [Sat, 26 Apr 2008 12:21:55 +0000 (12:21 +0000)]
Forget about JB_ERR_PARSE. JB_ERR_CGI_PARAMS to the rescue.

16 years agoNote that support request should not be send to individual developers.
Fabian Keil [Sat, 26 Apr 2008 11:38:51 +0000 (11:38 +0000)]
Note that support request should not be send to individual developers.

16 years agoLet the msn filter hide another class.
Fabian Keil [Sat, 26 Apr 2008 10:36:41 +0000 (10:36 +0000)]
Let the msn filter hide another class.

16 years agoIf zlib support is unavailable and there are content filters active
Fabian Keil [Sat, 26 Apr 2008 10:34:18 +0000 (10:34 +0000)]
If zlib support is unavailable and there are content filters active
but the prevent-compression action is disabled, include a warning
on the show-url-info page that compression might prevent filtering.

16 years ago- Factor cgi_show_file() out of cgi_show_status().
Fabian Keil [Fri, 25 Apr 2008 13:33:56 +0000 (13:33 +0000)]
- Factor cgi_show_file() out of cgi_show_status().
- Adjust cgi_show_status()'s parameter description to match reality.

16 years ago- Add some more tests for cgi_show_status().
Fabian Keil [Thu, 24 Apr 2008 16:31:08 +0000 (16:31 +0000)]
- Add some more tests for cgi_show_status().
- Drop a hint about Privoxy-Regression-Test coming bundled with the source tarball.

16 years agoIn cgi_show_status(), load the requested file at once.
Fabian Keil [Thu, 24 Apr 2008 16:12:38 +0000 (16:12 +0000)]
In cgi_show_status(), load the requested file at once.
Using string_join() for every line really doesn't scale.

16 years agos@declarded@declared@
Fabian Keil [Wed, 23 Apr 2008 16:18:18 +0000 (16:18 +0000)]
s@declarded@declared@

16 years agoFree with freez().
Fabian Keil [Wed, 23 Apr 2008 16:12:28 +0000 (16:12 +0000)]
Free with freez().

16 years agoIn parse_http_request(), remove a pointless
Fabian Keil [Tue, 22 Apr 2008 16:27:42 +0000 (16:27 +0000)]
In parse_http_request(), remove a pointless
temporary variable and free the buffer earlier.

16 years ago- Block daily mirror ads.
Fabian Keil [Tue, 22 Apr 2008 16:05:57 +0000 (16:05 +0000)]
- Block daily mirror ads.
- Block web bugs in feedburner feeds.
- Move vi settings to the end of the file again.

16 years agoRemove a bunch of #MASTER# directives that are now covered by
Fabian Keil [Sun, 20 Apr 2008 16:08:29 +0000 (16:08 +0000)]
Remove a bunch of #MASTER# directives that are now covered by
Privoxy-Regression-Test directives and replace some more of
the former with the latter.

16 years ago- Add a fast-redirects exception for some amazon
Fabian Keil [Sat, 19 Apr 2008 12:21:53 +0000 (12:21 +0000)]
- Add a fast-redirects exception for some amazon
  redirects that aren't handled properly.
- Add a URL directive for the last commit.

16 years agoFixes lifehacker.com css issue.
hal9 [Fri, 18 Apr 2008 10:50:43 +0000 (10:50 +0000)]
Fixes lifehacker.com css issue.

16 years agoMark simplematch()'s parameters as immutable.
Fabian Keil [Fri, 18 Apr 2008 05:17:18 +0000 (05:17 +0000)]
Mark simplematch()'s parameters as immutable.

16 years agoMove simplematch() into urlmatch.c as it's only
Fabian Keil [Thu, 17 Apr 2008 14:53:31 +0000 (14:53 +0000)]
Move simplematch() into urlmatch.c as it's only
used to match (old-school) domain patterns.

16 years agoProvide get_http_time() with the buffer size so it doesn't
Fabian Keil [Thu, 17 Apr 2008 14:40:49 +0000 (14:40 +0000)]
Provide get_http_time() with the buffer size so it doesn't
have to blindly assume that the buffer is big enough.

16 years agoDon't pass the whole csp structure to flush_socket()
Fabian Keil [Wed, 16 Apr 2008 16:38:21 +0000 (16:38 +0000)]
Don't pass the whole csp structure to flush_socket()
when it only needs a file descriptor and a buffer.

16 years agoRemove now-pointless cast in create_url_spec().
Fabian Keil [Mon, 14 Apr 2008 18:19:48 +0000 (18:19 +0000)]
Remove now-pointless cast in create_url_spec().

16 years agoThe compiler might not notice it, but the buffer passed to
Fabian Keil [Mon, 14 Apr 2008 18:11:21 +0000 (18:11 +0000)]
The compiler might not notice it, but the buffer passed to
create_url_spec() is modified later on and thus shouldn't
be declared immutable.

16 years agoFactor URL pattern compilation out of create_url_spec().
Fabian Keil [Sun, 13 Apr 2008 13:32:07 +0000 (13:32 +0000)]
Factor URL pattern compilation out of create_url_spec().

16 years agoRemove an obvious comment and improve another one.
Fabian Keil [Sat, 12 Apr 2008 14:03:13 +0000 (14:03 +0000)]
Remove an obvious comment and improve another one.

16 years agoFactor out duplicated code to compile host, path and tag patterns.
Fabian Keil [Sat, 12 Apr 2008 12:38:06 +0000 (12:38 +0000)]
Factor out duplicated code to compile host, path and tag patterns.

16 years agoIn get_final_results(), quote with quote()
Fabian Keil [Sat, 12 Apr 2008 12:29:22 +0000 (12:29 +0000)]
In get_final_results(), quote with quote()
and fix spelling in three comments.

16 years agoOops, I forgot to shorten the URL_SPEC_INITIALIZER in my last commit.
Fabian Keil [Fri, 11 Apr 2008 16:35:39 +0000 (16:35 +0000)]
Oops, I forgot to shorten the URL_SPEC_INITIALIZER in my last commit.

16 years agoActually we use "modern" POSIX 1003.2 regular
Fabian Keil [Thu, 10 Apr 2008 17:37:16 +0000 (17:37 +0000)]
Actually we use "modern" POSIX 1003.2 regular
expressions in path patterns, not PCRE.

16 years agoAdd another section to the client-header-tagger example that shows
Fabian Keil [Thu, 10 Apr 2008 15:59:12 +0000 (15:59 +0000)]
Add another section to the client-header-tagger example that shows
how to actually change the action settings once the tag is created.

16 years agoDitch url_spec's path member now that it's no longer used.
Fabian Keil [Thu, 10 Apr 2008 14:41:04 +0000 (14:41 +0000)]
Ditch url_spec's path member now that it's no longer used.

16 years agoStop duplicating the plain text representation of the path regex
Fabian Keil [Thu, 10 Apr 2008 04:24:24 +0000 (04:24 +0000)]
Stop duplicating the plain text representation of the path regex
(and keeping the copy around). Once the regex is compiled it's no
longer useful.

16 years agoIn url_match(), check the right member for NULL when determining
Fabian Keil [Thu, 10 Apr 2008 04:17:56 +0000 (04:17 +0000)]
In url_match(), check the right member for NULL when determining
whether there's a path regex to execute. Looking for a plain-text
representation works as well, but it looks "interesting" and that
member will be removed soonish anyway.

16 years agoMake it harder to mistake url_match()'s
Fabian Keil [Tue, 8 Apr 2008 16:07:39 +0000 (16:07 +0000)]
Make it harder to mistake url_match()'s
second parameter for an url_spec.

16 years agoSave a bit of memory (and a few cpu cycles) by not bothering to
Fabian Keil [Tue, 8 Apr 2008 15:44:33 +0000 (15:44 +0000)]
Save a bit of memory (and a few cpu cycles) by not bothering to
compile slash-only path regexes that don't affect the result.

16 years ago- Use free_url_spec() more consistently.
Fabian Keil [Mon, 7 Apr 2008 16:57:18 +0000 (16:57 +0000)]
- Use free_url_spec() more consistently.
- Let it reset url->dcount just in case.

16 years agoAdd url-pattern-translator, an action file filter
Fabian Keil [Sun, 6 Apr 2008 16:23:56 +0000 (16:23 +0000)]
Add url-pattern-translator, an action file filter
that rewrites old-school URL patterns to use extended
regular expressions for the host as well.

16 years agoOh well, rename the --enable-pcre-host-patterns option to
Fabian Keil [Sun, 6 Apr 2008 15:18:38 +0000 (15:18 +0000)]
Oh well, rename the --enable-pcre-host-patterns option to
--enable-extended-host-patterns as it's not really PCRE syntax.

16 years agoUse PCRE syntax in host patterns when configured
Fabian Keil [Sun, 6 Apr 2008 14:54:26 +0000 (14:54 +0000)]
Use PCRE syntax in host patterns when configured
with --enable-pcre-host-patterns.

16 years agoFactor compile_host_pattern() out of create_url_spec().
Fabian Keil [Sat, 5 Apr 2008 12:19:20 +0000 (12:19 +0000)]
Factor compile_host_pattern() out of create_url_spec().

16 years ago- Add some more checks for incompletely specified tests.
Fabian Keil [Fri, 4 Apr 2008 17:26:20 +0000 (17:26 +0000)]
- Add some more checks for incompletely specified tests.
- Don't ignore "Sticky Actions" directive if no
  other test has been loaded previously.

16 years agoSZitify unknown_method().
Fabian Keil [Sun, 30 Mar 2008 15:02:32 +0000 (15:02 +0000)]
SZitify unknown_method().

16 years agoRename load_actions_file() and load_re_filterfile()
Fabian Keil [Sun, 30 Mar 2008 14:52:10 +0000 (14:52 +0000)]
Rename load_actions_file() and load_re_filterfile()
as they load multiple files "now".

16 years agoMention DESTDIR support.
Fabian Keil [Sun, 30 Mar 2008 14:24:22 +0000 (14:24 +0000)]
Mention DESTDIR support.

16 years agoAdd DESTDIR support for the uninstall target.
Fabian Keil [Sun, 30 Mar 2008 13:31:42 +0000 (13:31 +0000)]
Add DESTDIR support for the uninstall target.

16 years agoAdd DESTDIR support for the install target. Closes PR#1910612.
Fabian Keil [Sun, 30 Mar 2008 13:19:13 +0000 (13:19 +0000)]
Add DESTDIR support for the install target. Closes PR#1910612.
Patch by Radoslaw Zielinski with minor modifications.

16 years agoRemove send-wafer and send-vanilla-wafer actions.
Fabian Keil [Sat, 29 Mar 2008 12:14:27 +0000 (12:14 +0000)]
Remove send-wafer and send-vanilla-wafer actions.

16 years agoIn action_used_to_be_valid(), loop through an array of formerly
Fabian Keil [Fri, 28 Mar 2008 18:17:14 +0000 (18:17 +0000)]
In action_used_to_be_valid(), loop through an array of formerly
valid actions instead of using an OR-chain of strcmpic() calls.

16 years agoShorten enlist_new_test().
Fabian Keil [Fri, 28 Mar 2008 16:09:12 +0000 (16:09 +0000)]
Shorten enlist_new_test().

16 years agoRemove inspect-jpegs action.
Fabian Keil [Fri, 28 Mar 2008 15:13:45 +0000 (15:13 +0000)]
Remove inspect-jpegs action.

16 years agoDumb syntax down for earlier Perl versions.
Fabian Keil [Thu, 27 Mar 2008 19:13:08 +0000 (19:13 +0000)]
Dumb syntax down for earlier Perl versions.

16 years agoRemove kill-popups action.
Fabian Keil [Thu, 27 Mar 2008 18:31:21 +0000 (18:31 +0000)]
Remove kill-popups action.

16 years agoTurn the favicon blobs into locals.
Fabian Keil [Thu, 27 Mar 2008 17:00:05 +0000 (17:00 +0000)]
Turn the favicon blobs into locals.

16 years agoMention the shiny new hostname directive.
Fabian Keil [Wed, 26 Mar 2008 19:55:04 +0000 (19:55 +0000)]
Mention the shiny new hostname directive.

16 years agoComment fix reloaded.
Fabian Keil [Wed, 26 Mar 2008 19:05:51 +0000 (19:05 +0000)]
Comment fix reloaded.

16 years agoCosmetics.
Fabian Keil [Wed, 26 Mar 2008 18:38:35 +0000 (18:38 +0000)]
Cosmetics.

16 years agoAdd hostname directive. Closes PR#1918189.
Fabian Keil [Wed, 26 Mar 2008 18:07:18 +0000 (18:07 +0000)]
Add hostname directive. Closes PR#1918189.

16 years ago- Add a bunch of hints for Privoxy-Regression-Test.
Fabian Keil [Wed, 26 Mar 2008 17:42:24 +0000 (17:42 +0000)]
- Add a bunch of hints for Privoxy-Regression-Test.
- Fix a few incorrect patterns that showed up in the first test run.

16 years ago- Add the directives "Sticky Actions" and "URL" which allow
Fabian Keil [Wed, 26 Mar 2008 17:25:40 +0000 (17:25 +0000)]
- Add the directives "Sticky Actions" and "URL" which allow
  to verify that action sections have the expected effect.
- In check_for_forbidden_characters, allow asterisks and carets.
- Update documentation.

16 years agoDocument "Blocked URL".
Fabian Keil [Tue, 25 Mar 2008 17:17:46 +0000 (17:17 +0000)]
Document "Blocked URL".

16 years agoUse sizeof() more often.
Fabian Keil [Mon, 24 Mar 2008 18:12:52 +0000 (18:12 +0000)]
Use sizeof() more often.

16 years agoPet gcc43.
Fabian Keil [Mon, 24 Mar 2008 15:29:51 +0000 (15:29 +0000)]
Pet gcc43.

16 years ago- Add ".ebay.de/ws/eBayISAPI\.dll\?" to -fast-redirects section.
Fabian Keil [Mon, 24 Mar 2008 11:31:10 +0000 (11:31 +0000)]
- Add ".ebay.de/ws/eBayISAPI\.dll\?" to -fast-redirects section.
- Remove obsolete -prevent-compression section.

16 years agoShare the action settings for multiple patterns in the same
Fabian Keil [Mon, 24 Mar 2008 11:21:03 +0000 (11:21 +0000)]
Share the action settings for multiple patterns in the same
section so we waste less memory for gigantic block lists
(and load them slightly faster). Reported by Franz Schwartau.

16 years ago- Add some "Blocked URL" directives for Privoxy-Regression-Test.
Fabian Keil [Fri, 21 Mar 2008 13:22:20 +0000 (13:22 +0000)]
- Add some "Blocked URL" directives for Privoxy-Regression-Test.
- Fix a pattern detected while testing the shiny new directives.
- Fix a broken #MASTER# REMARKS: which wasn't completely commented.

16 years ago- Normalize whitespace in directives.
Fabian Keil [Fri, 21 Mar 2008 13:00:37 +0000 (13:00 +0000)]
- Normalize whitespace in directives.
- Ignore directives without values.

16 years agoGarbage-collect csp->my_ip_addr_str and csp->my_hostname.
Fabian Keil [Fri, 21 Mar 2008 11:16:30 +0000 (11:16 +0000)]
Garbage-collect csp->my_ip_addr_str and csp->my_hostname.

16 years agoOnly gather host information if it's actually needed.
Fabian Keil [Fri, 21 Mar 2008 11:14:00 +0000 (11:14 +0000)]
Only gather host information if it's actually needed.
Also move the code out of accept_connection() so it's less likely
to delay other incoming connections if the host is misconfigured.

16 years ago- Rename "Block Test" directive to "Blocked URL".
Fabian Keil [Wed, 19 Mar 2008 16:19:20 +0000 (16:19 +0000)]
- Rename "Block Test" directive to "Blocked URL".
- In get_final_results(), save the action parameter properly.
- In tokenize(), reverse HTML-encoding for ampersands.
- Allow tildes in check_for_forbidden_characters().

16 years ago- Don't allow colons in token names.
Fabian Keil [Tue, 18 Mar 2008 22:09:21 +0000 (22:09 +0000)]
- Don't allow colons in token names.
- Let get_final_results() quote the URL.

16 years ago- Add "block test" directive.
Fabian Keil [Tue, 18 Mar 2008 16:54:24 +0000 (16:54 +0000)]
- Add "block test" directive.
- Fix typo.

16 years agoSome exceptions for Encyclopedia Dramatica. I did it for the lulz.
Fabian Keil [Sun, 16 Mar 2008 18:02:19 +0000 (18:02 +0000)]
Some exceptions for Encyclopedia Dramatica. I did it for the lulz.

16 years agoAdd %config lines for regression-tests.action and forwarding-failed.
Fabian Keil [Sun, 16 Mar 2008 14:17:25 +0000 (14:17 +0000)]
Add %config lines for regression-tests.action and forwarding-failed.
This might or might not help with #1915185, reported by Bernardo Bacic.

16 years agoAdd CGI editor support for the "disable all filters of this type"
Fabian Keil [Sat, 15 Mar 2008 14:52:36 +0000 (14:52 +0000)]
Add CGI editor support for the "disable all filters of this type"
directives "-client-header-filter", "-server-header-filter",
"-client-header-tagger" and "-server-header-tagger".

16 years agoAfter three file modification time mismatches, turn the CGI editor off.
Fabian Keil [Sat, 8 Mar 2008 16:25:56 +0000 (16:25 +0000)]
After three file modification time mismatches, turn the CGI editor off.

16 years agoReword limit-connect{} entry.
Fabian Keil [Fri, 7 Mar 2008 16:46:49 +0000 (16:46 +0000)]
Reword limit-connect{} entry.

16 years agoIf limit-connect isn't used, don't limit CONNECT requests to port 443.
Fabian Keil [Thu, 6 Mar 2008 16:33:47 +0000 (16:33 +0000)]
If limit-connect isn't used, don't limit CONNECT requests to port 443.

16 years agoUpdate to 2008-02-05.
Fabian Keil [Thu, 6 Mar 2008 16:01:36 +0000 (16:01 +0000)]
Update to 2008-02-05.

16 years agoUpdate to 2008-01-23.
Fabian Keil [Thu, 6 Mar 2008 15:59:59 +0000 (15:59 +0000)]
Update to 2008-01-23.

16 years agoRemove the treat-forbidden-connects-like-blocks action. We now
Fabian Keil [Tue, 4 Mar 2008 18:30:44 +0000 (18:30 +0000)]
Remove the treat-forbidden-connects-like-blocks action. We now
use the "blocked" page for forbidden CONNECT requests by default.

16 years agoStop calling "handle-as-image" by its old name.
Fabian Keil [Tue, 4 Mar 2008 18:15:52 +0000 (18:15 +0000)]
Stop calling "handle-as-image" by its old name.

16 years agoUpdate copyright year in win32_blurb[].
Fabian Keil [Sun, 2 Mar 2008 18:15:41 +0000 (18:15 +0000)]
Update copyright year in win32_blurb[].

16 years agoNo point in keeping this here. We can revive it as soon as someone comes up
Fabian Keil [Sun, 2 Mar 2008 18:08:43 +0000 (18:08 +0000)]
No point in keeping this here. We can revive it as soon as someone comes up
with data that shows that our current list implementation isn't good enough.

16 years agoSet version to 3.0.9.
Fabian Keil [Sun, 2 Mar 2008 17:36:43 +0000 (17:36 +0000)]
Set version to 3.0.9.

16 years agoAlso use shiny new connect_port_is_forbidden() in jcc.c.
Fabian Keil [Sun, 2 Mar 2008 12:25:25 +0000 (12:25 +0000)]
Also use shiny new connect_port_is_forbidden() in jcc.c.

16 years ago- Add dependency checks for test levels 9 and 12.
Fabian Keil [Sat, 1 Mar 2008 15:53:47 +0000 (15:53 +0000)]
- Add dependency checks for test levels 9 and 12.
- Update to use new block syntax.
- Add some tests for limit-connect{} and block{}.
- Verify that methods are checked case-insensitive.
- Cosmetics.

16 years agoDon't reference non-existing nimbda filter.
Fabian Keil [Sat, 1 Mar 2008 15:25:34 +0000 (15:25 +0000)]
Don't reference non-existing nimbda filter.

16 years agoUse new block syntax. Still needs some polishing.
Fabian Keil [Sat, 1 Mar 2008 15:13:03 +0000 (15:13 +0000)]
Use new block syntax. Still needs some polishing.

16 years agoUse new block syntax. Still needs some polishing.
Fabian Keil [Sat, 1 Mar 2008 14:10:28 +0000 (14:10 +0000)]
Use new block syntax. Still needs some polishing.

16 years agoLet the block action take the reason for the block
Fabian Keil [Sat, 1 Mar 2008 14:00:47 +0000 (14:00 +0000)]
Let the block action take the reason for the block
as argument and show it on the "blocked" page.

16 years agoRename url_actions() to get_url_actions() and let it
Fabian Keil [Sat, 23 Feb 2008 16:57:12 +0000 (16:57 +0000)]
Rename url_actions() to get_url_actions() and let it
use the standard parameter ordering.

16 years agoLet forward_url() use the standard parameter ordering
Fabian Keil [Sat, 23 Feb 2008 16:33:43 +0000 (16:33 +0000)]
Let forward_url() use the standard parameter ordering
and mark its second parameter immutable.

16 years agoApply small Slackware patch from Laurence Darby.
hal9 [Fri, 22 Feb 2008 11:38:55 +0000 (11:38 +0000)]
Apply small Slackware patch from Laurence Darby.

16 years agoupdates for mac os x
markm68k [Fri, 22 Feb 2008 05:54:27 +0000 (05:54 +0000)]
updates for mac os x

16 years agofix merge problem
markm68k [Fri, 22 Feb 2008 05:50:37 +0000 (05:50 +0000)]
fix merge problem

16 years ago- Don't redirect dmoz edit URLs.
Fabian Keil [Tue, 19 Feb 2008 18:52:02 +0000 (18:52 +0000)]
- Don't redirect dmoz edit URLs.
- Unblock Google's adsense info/login page. Reported by Sebastian in #1897121.

16 years ago- Send HEAD requests with --request + --head instead of --head only,
Fabian Keil [Sun, 17 Feb 2008 15:22:06 +0000 (15:22 +0000)]
- Send HEAD requests with --request + --head instead of --head only,
  to make sure the spelling from the configuration file is maintained.
- Remove some unused code and white space.

16 years agoFix typo.
Fabian Keil [Sat, 16 Feb 2008 16:54:51 +0000 (16:54 +0000)]
Fix typo.