Fabian Keil [Sat, 17 May 2008 14:16:29 +0000 (14:16 +0000)]
Add a bunch of LWS header tests.
Fabian Keil [Sat, 17 May 2008 14:13:23 +0000 (14:13 +0000)]
Let it digest shiny new LWS tests properly.
Fabian Keil [Sat, 17 May 2008 14:02:07 +0000 (14:02 +0000)]
Normalize linear header white space.
Fabian Keil [Fri, 16 May 2008 16:39:03 +0000 (16:39 +0000)]
If a header is split across multiple lines,
merge them to a single line before parsing them.
Fabian Keil [Mon, 12 May 2008 14:51:30 +0000 (14:51 +0000)]
Don't complain about an invalid URL if show-url-info is requested
without parameters. Regression introduced in 1.81 by yours truly.
Fabian Keil [Mon, 12 May 2008 11:13:33 +0000 (11:13 +0000)]
Clarify that Privoxy is licensed under GPL version 2.
Fabian Keil [Mon, 12 May 2008 10:26:14 +0000 (10:26 +0000)]
Synchronize content filter descriptions with the ones in default.filter.
Fabian Keil [Mon, 12 May 2008 09:44:40 +0000 (09:44 +0000)]
Update descriptions for header taggers and filters.
Fabian Keil [Mon, 12 May 2008 09:31:36 +0000 (09:31 +0000)]
- Generate markup for all filter types currently supported by Privoxy.
- Put code into subroutines.
Fabian Keil [Sun, 11 May 2008 15:33:35 +0000 (15:33 +0000)]
- Use descriptive variable names.
- Use strict mode.
- Add missing colon that got lost in the last commit.
- Prepare to support other filter types.
Fabian Keil [Sun, 11 May 2008 14:58:39 +0000 (14:58 +0000)]
Synchronize content filter descriptions with the ones in default.filter.
Fabian Keil [Sun, 11 May 2008 12:31:29 +0000 (12:31 +0000)]
- Generate enabled action lines for standard.action.
- "here-doc"ify generated markup.
Fabian Keil [Sat, 10 May 2008 20:01:47 +0000 (20:01 +0000)]
Fix an assertion that could erroneously
trigger in case of memory shortage.
Fabian Keil [Sat, 10 May 2008 13:23:38 +0000 (13:23 +0000)]
Don't provide get_header() with the whole client state
structure when it only needs access to csp->iob.
Fabian Keil [Sat, 10 May 2008 11:51:12 +0000 (11:51 +0000)]
Make the "read the rest of the headers" loop a bit more readable.
Fabian Keil [Sat, 10 May 2008 11:37:57 +0000 (11:37 +0000)]
- Instead of logging when the IIS5 hack is enabled, log when it fails.
- Remove useless comment.
Fabian Keil [Sat, 10 May 2008 09:03:16 +0000 (09:03 +0000)]
- Merge three string_append() calls.
- Remove useless assertion.
Fabian Keil [Fri, 9 May 2008 18:53:59 +0000 (18:53 +0000)]
Fix comment grammar.
Fabian Keil [Wed, 7 May 2008 18:05:53 +0000 (18:05 +0000)]
Remove the pointless buffer in client_protocol_is_unsupported().
Fabian Keil [Tue, 6 May 2008 15:09:00 +0000 (15:09 +0000)]
Least-effort fix for bug #
1821930 (reported by Lee):
If the response doesn't look like HTTP,
tell the client and log the problem.
Fabian Keil [Mon, 5 May 2008 10:48:55 +0000 (10:48 +0000)]
Be more specific about which license we use.
Fabian Keil [Mon, 5 May 2008 10:10:57 +0000 (10:10 +0000)]
Add --fuzzer-address option to specify a different proxy address
for executing the regression tests. Useful to make sure that the
requests to load the regression tests don't fail due to fuzzing.
Fabian Keil [Mon, 5 May 2008 10:05:03 +0000 (10:05 +0000)]
Add a show-url-info fetch test with an (invalid) ftp URL.
Fabian Keil [Mon, 5 May 2008 10:03:06 +0000 (10:03 +0000)]
If the provided URL isn't valid, don't show the
cgi-editor-is-disabled and filters-might-be-ineffective
sections.
Fabian Keil [Mon, 5 May 2008 09:54:39 +0000 (09:54 +0000)]
In cgi_show_url_info(), make sure ftp URLs are
declared invalid. Also simplify the code that adds
"http://" if no protocol has been specified.
Fabian Keil [Sun, 4 May 2008 18:01:53 +0000 (18:01 +0000)]
Dependency fixes: cgisimple.c and filters.c depend on urlmatch.h.
Fabian Keil [Sun, 4 May 2008 17:52:56 +0000 (17:52 +0000)]
Adjust parse_http_url() call to new prototype.
Fabian Keil [Sun, 4 May 2008 16:18:32 +0000 (16:18 +0000)]
Provide parse_http_url() with a third parameter to specify
whether or not URLs without protocol are acceptable.
Fabian Keil [Sun, 4 May 2008 13:30:56 +0000 (13:30 +0000)]
Streamline parse_http_url()'s prototype.
Fabian Keil [Sun, 4 May 2008 13:24:16 +0000 (13:24 +0000)]
If the method isn't CONNECT, reject URLs without protocol.
Fabian Keil [Sat, 3 May 2008 16:50:11 +0000 (16:50 +0000)]
Leverage content_filters_enabled() in cgi_show_url_info().
Fabian Keil [Sat, 3 May 2008 16:40:45 +0000 (16:40 +0000)]
Change content_filters_enabled()'s parameter from
csp->action to action so it can be also used in the
CGI code. Don't bother checking if there are filters
loaded, as that's somewhat besides the point.
Fabian Keil [Fri, 2 May 2008 11:17:58 +0000 (11:17 +0000)]
Don't show successful test runs by default.
Replace --silent option with --verbose option.
Fabian Keil [Fri, 2 May 2008 09:51:34 +0000 (09:51 +0000)]
In parse_http_url(), don't muck around with values
that are none of its business: require an initialized
http structure and never unset http->ssl.
Fabian Keil [Fri, 2 May 2008 09:47:48 +0000 (09:47 +0000)]
In cgi_show_url_info, pass an initialized http structure
to parse_http_url() as that will be required soonish and
assert that https URLs are recognized correctly.
Fabian Keil [Mon, 28 Apr 2008 09:13:30 +0000 (09:13 +0000)]
In load_file(), remember the error reason and fclose()
and return later on instead of right away.
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.
Fabian Keil [Sun, 27 Apr 2008 16:26:59 +0000 (16:26 +0000)]
White space fix for the last commit.
Fabian Keil [Sun, 27 Apr 2008 16:20:19 +0000 (16:20 +0000)]
Complain about every block action without reason found.
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.
Fabian Keil [Sat, 26 Apr 2008 15:50:56 +0000 (15:50 +0000)]
Fix macro name in cgi_show_file() error path.
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.
Fabian Keil [Sat, 26 Apr 2008 11:38:51 +0000 (11:38 +0000)]
Note that support request should not be send to individual developers.
Fabian Keil [Sat, 26 Apr 2008 10:36:41 +0000 (10:36 +0000)]
Let the msn filter hide another class.
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.
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.
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.
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.
Fabian Keil [Wed, 23 Apr 2008 16:18:18 +0000 (16:18 +0000)]
s@declarded@declared@
Fabian Keil [Wed, 23 Apr 2008 16:12:28 +0000 (16:12 +0000)]
Free with freez().
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.
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.
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.
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.
hal9 [Fri, 18 Apr 2008 10:50:43 +0000 (10:50 +0000)]
Fixes lifehacker.com css issue.
Fabian Keil [Fri, 18 Apr 2008 05:17:18 +0000 (05:17 +0000)]
Mark simplematch()'s parameters as immutable.
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.
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.
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.
Fabian Keil [Mon, 14 Apr 2008 18:19:48 +0000 (18:19 +0000)]
Remove now-pointless cast in create_url_spec().
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.
Fabian Keil [Sun, 13 Apr 2008 13:32:07 +0000 (13:32 +0000)]
Factor URL pattern compilation out of create_url_spec().
Fabian Keil [Sat, 12 Apr 2008 14:03:13 +0000 (14:03 +0000)]
Remove an obvious comment and improve another one.
Fabian Keil [Sat, 12 Apr 2008 12:38:06 +0000 (12:38 +0000)]
Factor out duplicated code to compile host, path and tag patterns.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Fabian Keil [Sat, 5 Apr 2008 12:19:20 +0000 (12:19 +0000)]
Factor compile_host_pattern() out of create_url_spec().
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.
Fabian Keil [Sun, 30 Mar 2008 15:02:32 +0000 (15:02 +0000)]
SZitify unknown_method().
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".
Fabian Keil [Sun, 30 Mar 2008 14:24:22 +0000 (14:24 +0000)]
Mention DESTDIR support.
Fabian Keil [Sun, 30 Mar 2008 13:31:42 +0000 (13:31 +0000)]
Add DESTDIR support for the uninstall target.
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.
Fabian Keil [Sat, 29 Mar 2008 12:14:27 +0000 (12:14 +0000)]
Remove send-wafer and send-vanilla-wafer actions.
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.
Fabian Keil [Fri, 28 Mar 2008 16:09:12 +0000 (16:09 +0000)]
Shorten enlist_new_test().
Fabian Keil [Fri, 28 Mar 2008 15:13:45 +0000 (15:13 +0000)]
Remove inspect-jpegs action.
Fabian Keil [Thu, 27 Mar 2008 19:13:08 +0000 (19:13 +0000)]
Dumb syntax down for earlier Perl versions.
Fabian Keil [Thu, 27 Mar 2008 18:31:21 +0000 (18:31 +0000)]
Remove kill-popups action.
Fabian Keil [Thu, 27 Mar 2008 17:00:05 +0000 (17:00 +0000)]
Turn the favicon blobs into locals.
Fabian Keil [Wed, 26 Mar 2008 19:55:04 +0000 (19:55 +0000)]
Mention the shiny new hostname directive.
Fabian Keil [Wed, 26 Mar 2008 19:05:51 +0000 (19:05 +0000)]
Comment fix reloaded.
Fabian Keil [Wed, 26 Mar 2008 18:38:35 +0000 (18:38 +0000)]
Cosmetics.
Fabian Keil [Wed, 26 Mar 2008 18:07:18 +0000 (18:07 +0000)]
Add hostname directive. Closes PR#
1918189.
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.
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.
Fabian Keil [Tue, 25 Mar 2008 17:17:46 +0000 (17:17 +0000)]
Document "Blocked URL".
Fabian Keil [Mon, 24 Mar 2008 18:12:52 +0000 (18:12 +0000)]
Use sizeof() more often.
Fabian Keil [Mon, 24 Mar 2008 15:29:51 +0000 (15:29 +0000)]
Pet gcc43.