Fabian Keil [Fri, 26 Jan 2007 14:18:42 +0000 (14:18 +0000)]
- Start to reduce chat()'s line count and move
parts of it into separate functions.
- Add "HTTP/1.1 100 Continue" hack for BR 756734.
Fabian Keil [Thu, 25 Jan 2007 15:02:46 +0000 (15:02 +0000)]
- Comment cosmetic.
- Suggest to check the show-status page
and to make sure the forwarders are running.
(I expect this page to be mostly reached by
Tor users who forgot to actually start the Tor client.)
Fabian Keil [Thu, 25 Jan 2007 14:18:32 +0000 (14:18 +0000)]
Fix template name in comments.
Fabian Keil [Thu, 25 Jan 2007 14:16:54 +0000 (14:16 +0000)]
Add "forwarding-failed" template,
currently only used for socks errors
Fabian Keil [Thu, 25 Jan 2007 14:09:45 +0000 (14:09 +0000)]
- Save errors in socks4_connect() to csp->error_message.
- Silence some gcc43 warnings, hopefully the right way.
Fabian Keil [Thu, 25 Jan 2007 14:02:30 +0000 (14:02 +0000)]
- Add Proxy-Agent header to HTTP snippets that are
supposed to reach HTTP clients only.
- Made a few CONNECT log messages more descriptive.
- Catch completely empty server responses (as seen
with Tor's fake ".noconnect" top level domain).
- Use shiny new "forwarding-failed" template for socks errors.
Fabian Keil [Thu, 25 Jan 2007 13:47:26 +0000 (13:47 +0000)]
Added "forwarding-failed" template support for error_response().
Fabian Keil [Thu, 25 Jan 2007 13:38:20 +0000 (13:38 +0000)]
Freez csp->error_message in sweep().
Fabian Keil [Thu, 25 Jan 2007 13:36:59 +0000 (13:36 +0000)]
Add csp->error_message for failure reasons
that should be embedded into the CGI pages.
Fabian Keil [Wed, 24 Jan 2007 12:56:52 +0000 (12:56 +0000)]
- Repeat the request URL before logging any headers.
Makes reading the log easier in case of simultaneous requests.
- If there are more than one Content-Type headers in one request,
use the first one and remove the others.
- Remove "newval" variable in server_content_type().
It's only used once.
Fabian Keil [Tue, 23 Jan 2007 16:07:10 +0000 (16:07 +0000)]
- Add favicon link.
Fabian Keil [Tue, 23 Jan 2007 16:03:17 +0000 (16:03 +0000)]
- Add favicon links.
- Remove useless W3C validator links.
Fabian Keil [Tue, 23 Jan 2007 15:51:17 +0000 (15:51 +0000)]
Add favicon delivery functions.
Fabian Keil [Tue, 23 Jan 2007 15:10:24 +0000 (15:10 +0000)]
Remove useless W3C validator link.
Fabian Keil [Tue, 23 Jan 2007 13:14:32 +0000 (13:14 +0000)]
- Map variables that aren't guaranteed to be
pure ASCII html_encoded.
- Use CGI_PREFIX to generate URL for user manual
CGI page to make sure CGI_SITE_2_PATH is included.
Fabian Keil [Mon, 22 Jan 2007 17:43:12 +0000 (17:43 +0000)]
- Update to reflect recent changes.
- Mention that we don't relicense included non-GPL code.
Fabian Keil [Mon, 22 Jan 2007 16:06:28 +0000 (16:06 +0000)]
Disable prevent-compression for all default
settings. It's no longer needed for filtering,
now that Privoxy has zlib support.
Change Medium's hide-referrer mode from "forge"
to the superior "conditional-block".
Fabian Keil [Mon, 22 Jan 2007 15:34:13 +0000 (15:34 +0000)]
- "Protect" against a rather lame JavaScript-based
Privoxy detection "attack" and check the referrer
before delivering the CGI style sheet.
- Move referrer check for unsafe CGI pages into
referrer_is_safe() and log the result.
- Map @url@ in cgi-error-disabled page.
It's required for the "go there anyway" link.
- Mark *csp as immutable for grep_cgi_referrer().
Fabian Keil [Mon, 22 Jan 2007 15:15:08 +0000 (15:15 +0000)]
- Be a bit more descriptive about why CGI access
has been denied and what the user can do about it.
- Add a "go there anyway" link to pass the referrer check.
- Add empty table summary to silence validator warning.
- Remove the useless W3C validator link.
Fabian Keil [Mon, 22 Jan 2007 13:15:00 +0000 (13:15 +0000)]
#include CSS to be prepared for the send-stylesheet
referrer check that will arrive soonish.
Fabian Keil [Mon, 22 Jan 2007 13:12:43 +0000 (13:12 +0000)]
White space cosmetics for #include.
Fabian Keil [Mon, 22 Jan 2007 13:09:32 +0000 (13:09 +0000)]
- #include CSS to be prepared for the send-stylesheet
referrer check that will arrive soonish.
- Add empty table summary to silence validator warnings.
- Remove the useless W3C validator link.
hal9 [Mon, 22 Jan 2007 03:07:46 +0000 (03:07 +0000)]
Added fixes for user tracking and ads exposed on floodle.net
hal9 [Sat, 20 Jan 2007 23:00:51 +0000 (23:00 +0000)]
Two ads coming from wunderground.com, and exception for compression problems
with compusa.com
Fabian Keil [Sat, 20 Jan 2007 16:29:38 +0000 (16:29 +0000)]
Suppress edit buttons for action files if Privoxy has
no write access. Suggested by Roland in PR
1564026.
Fabian Keil [Sat, 20 Jan 2007 15:31:31 +0000 (15:31 +0000)]
Display warning if show-url-info CGI page
is used while Privoxy is toggled off.
Fabian Keil [Sat, 20 Jan 2007 13:24:29 +0000 (13:24 +0000)]
- Add block pattern "/.*(top|bottom|left|right)_?ad".
Closes action file tracker
1616457,
thanks to Adam Piggott for reporting.
- Enable fast-redirects for bloglines.com.
Closes action file tracker
1593393,
thanks to Davide Alberani for reporting.
- Add leading dot for -filter patterns "cvs.",
"svn." and "websvn".
- Update suggested hide-if-modified-since random
range which is nowadays interpreted as minutes
instead of hours.
Fabian Keil [Fri, 19 Jan 2007 16:13:00 +0000 (16:13 +0000)]
Cure yahoo logout problems reported in support
request #
1635354 and rant about yahoo defaults.
Fabian Keil [Thu, 18 Jan 2007 15:03:20 +0000 (15:03 +0000)]
Don't include replacement timegm() if
putenv() or tzset() isn't available.
Fabian Keil [Thu, 18 Jan 2007 14:55:45 +0000 (14:55 +0000)]
Check for tzset() and putenv() to make sure the
replacement timegm() isn't included on systems
where it fails to compile.
hal9 [Tue, 16 Jan 2007 10:54:36 +0000 (10:54 +0000)]
Fix a 'classifiedad' problem and add guesttrace as a user tracker.
Fabian Keil [Fri, 12 Jan 2007 15:41:00 +0000 (15:41 +0000)]
Remove some white space at EOL.
Fabian Keil [Fri, 12 Jan 2007 15:36:44 +0000 (15:36 +0000)]
Mark *csp as immutable for is_untrusted_url()
and is_imageurl(). Closes FR
1237736.
Fabian Keil [Fri, 12 Jan 2007 15:20:17 +0000 (15:20 +0000)]
Temporarily ignore external libpcrs to prevent
problems that are fixed in Privoxy's own version.
Fabian Keil [Fri, 12 Jan 2007 15:07:10 +0000 (15:07 +0000)]
Use zalloc in cgi_send_user_manual.
Fabian Keil [Fri, 12 Jan 2007 15:03:02 +0000 (15:03 +0000)]
Correct a cast, check inflateEnd() exit code
to see if we have to, replace sprintf calls
with snprintf.
Fabian Keil [Tue, 9 Jan 2007 11:54:26 +0000 (11:54 +0000)]
Fix strdup() error handling in cgi_error_unknown()
and cgi_error_no_template(). Reported by Markus Elfring.
joergs [Sun, 7 Jan 2007 07:43:43 +0000 (07:43 +0000)]
AmigaOS4 support added.
joergs [Sun, 7 Jan 2007 07:40:52 +0000 (07:40 +0000)]
Added AmigaOS4 support and made it work on AmigaOS 3.x with current sources.
joergs [Sun, 7 Jan 2007 07:38:10 +0000 (07:38 +0000)]
Disabled -pipe for AmigaOS4.
joergs [Sun, 7 Jan 2007 07:36:36 +0000 (07:36 +0000)]
Added AmigaOS4 support.
Fabian Keil [Sat, 6 Jan 2007 14:24:38 +0000 (14:24 +0000)]
Mark *csp as immutable for parse_http_url()
and url_match().
Fabian Keil [Sat, 6 Jan 2007 14:23:56 +0000 (14:23 +0000)]
Fix gcc43 warnings. Mark *csp as immutable
for parse_http_url() and url_match().
Replace a sprintf call with snprintf.
Fabian Keil [Fri, 5 Jan 2007 15:46:12 +0000 (15:46 +0000)]
Don't use strlen() to calculate the length of
the pcrs substitutes. They don't have to be valid C
strings and getting their length wrong can result in
user-controlled memory corruption.
Thanks to Felix Gröbert for reporting the problem
and providing the fix [#
1627140].
Fabian Keil [Fri, 5 Jan 2007 14:19:02 +0000 (14:19 +0000)]
Handle pcrs_execute() errors in template_fill() properly.
Fabian Keil [Wed, 3 Jan 2007 14:39:19 +0000 (14:39 +0000)]
Fix a gcc43 warning and mark the binbuffer
as immutable for buf_getbyte().
Fabian Keil [Tue, 2 Jan 2007 12:49:46 +0000 (12:49 +0000)]
Add FEATURE_ZLIB to the list of conditional
defines at the show-status page.
David Schmidt [Tue, 2 Jan 2007 01:39:52 +0000 (01:39 +0000)]
Ulrich Spoerlein's patch to remove whitespace
Fabian Keil [Mon, 1 Jan 2007 19:36:37 +0000 (19:36 +0000)]
Integrate a modified version of Wil Mahan's
zlib patch (PR #895531).
Fabian Keil [Sun, 31 Dec 2006 22:21:33 +0000 (22:21 +0000)]
Skip empty filter files in filter_header()
but don't ignore the ones that come afterwards.
Fixes BR
1619208, this time for real.
Fabian Keil [Sun, 31 Dec 2006 17:56:38 +0000 (17:56 +0000)]
Added config option accept-intercepted-requests
and disabled it by default.
Fabian Keil [Sun, 31 Dec 2006 15:03:31 +0000 (15:03 +0000)]
Fix gcc43 compiler warnings and a comment.
Fabian Keil [Sun, 31 Dec 2006 14:25:20 +0000 (14:25 +0000)]
Fix gcc43 compiler warnings.
Fabian Keil [Fri, 29 Dec 2006 19:08:22 +0000 (19:08 +0000)]
Reverted parts of my last commit
to keep error handling working.
Fabian Keil [Fri, 29 Dec 2006 18:30:46 +0000 (18:30 +0000)]
Fixed gcc43 conversion warnings,
changed sprintf calls to snprintf.
Fabian Keil [Fri, 29 Dec 2006 18:04:40 +0000 (18:04 +0000)]
Fixed gcc43 conversion warnings.
Fabian Keil [Fri, 29 Dec 2006 17:53:05 +0000 (17:53 +0000)]
Fixed gcc43 conversion warnings.
Fabian Keil [Fri, 29 Dec 2006 17:38:57 +0000 (17:38 +0000)]
Fixed gcc43 conversion warnings.
Fabian Keil [Thu, 28 Dec 2006 19:21:23 +0000 (19:21 +0000)]
Fixed gcc43 warning and enabled list_is_valid()'s loop
detection again. It was ineffective since the removal of
the arbitrary list length limit two years ago.
Fabian Keil [Thu, 28 Dec 2006 18:25:53 +0000 (18:25 +0000)]
Fixed gcc43 compiler warning.
Fabian Keil [Thu, 28 Dec 2006 18:16:41 +0000 (18:16 +0000)]
Fixed gcc43 compiler warnings, zero out cgi_send_user_manual's
body memory before using it, replaced sprintf calls with snprintf.
Fabian Keil [Thu, 28 Dec 2006 18:04:25 +0000 (18:04 +0000)]
Fixed gcc43 conversion warnings.
Fabian Keil [Thu, 28 Dec 2006 17:54:22 +0000 (17:54 +0000)]
Fixed gcc43 conversion warnings and replaced sprintf
calls with snprintf to give OpenBSD's gcc one less reason
to complain.
Fabian Keil [Thu, 28 Dec 2006 17:15:42 +0000 (17:15 +0000)]
Fix gcc43 conversion warning.
hal9 [Thu, 28 Dec 2006 11:23:43 +0000 (11:23 +0000)]
Several updates from recent SF activity.
Fabian Keil [Wed, 27 Dec 2006 18:52:02 +0000 (18:52 +0000)]
Fix -pedantic ISO C warning about converting
from function pointer to object pointer.
Fabian Keil [Wed, 27 Dec 2006 18:44:52 +0000 (18:44 +0000)]
Stop shadowing string.h's index().
Fabian Keil [Tue, 26 Dec 2006 17:38:50 +0000 (17:38 +0000)]
Silence compiler warning I introduced with my last commit.
Fabian Keil [Tue, 26 Dec 2006 17:31:41 +0000 (17:31 +0000)]
Mutex protect rand() if POSIX threading
is used, warn the user if that's not possible
and stop using it on _WIN32 where it could
cause crashes.
Fabian Keil [Tue, 26 Dec 2006 17:19:20 +0000 (17:19 +0000)]
Bringing back the "useless" localtime() call
I removed in revision 1.67. On some platforms
it's necessary to prevent time zone offsets.
Fabian Keil [Sun, 24 Dec 2006 17:37:38 +0000 (17:37 +0000)]
Adjust comment in pcrs_filter_response()
to recent pcrs changes. Hohoho.
Fabian Keil [Sun, 24 Dec 2006 17:34:20 +0000 (17:34 +0000)]
Add pcrs_strerror() message for PCRE_ERROR_MATCHLIMIT
and give a hint why an error code might be unknown.
Catch NULL subjects early in pcrs_execute().
Fabian Keil [Sun, 24 Dec 2006 17:27:37 +0000 (17:27 +0000)]
Increase pcrs error code offset to prevent overlaps
with pcre versions newer than our own.
Fabian Keil [Sat, 23 Dec 2006 16:15:06 +0000 (16:15 +0000)]
Don't prevent core dumps by catching SIGABRT.
It's rude and makes debugging unreasonable painful.
Fabian Keil [Sat, 23 Dec 2006 16:01:02 +0000 (16:01 +0000)]
Don't crash if pcre returns an error code
that pcrs didn't expect. Fixes BR
1621173.
Fabian Keil [Fri, 22 Dec 2006 19:14:11 +0000 (19:14 +0000)]
Add some new entries.
Fabian Keil [Fri, 22 Dec 2006 19:06:56 +0000 (19:06 +0000)]
Added contributor Daniel Griscom who suggested to give a
reason when generating new trust entries (FR
1097611).
Fabian Keil [Fri, 22 Dec 2006 18:52:53 +0000 (18:52 +0000)]
Modified is_untrusted_url to complain in case of
write errors and to give a reason when adding new
entries to the trustfile. Closes FR
1097611.
Fabian Keil [Fri, 22 Dec 2006 14:24:52 +0000 (14:24 +0000)]
Skip empty filter files in pcrs_filter_response,
but don't ignore the ones that come afterwards.
Fixes parts of BR
1619208.
Fabian Keil [Fri, 22 Dec 2006 14:19:27 +0000 (14:19 +0000)]
Removed checks whether or not AF_FILES have
data structures associated with them in cgi_show_status.
It doesn't matter as we're only interested in the file names.
For the action files the checks were always true,
but they prevented empty filter files from being
listed. Fixes parts of BR
1619208.
Fabian Keil [Thu, 21 Dec 2006 13:01:03 +0000 (13:01 +0000)]
Prepare for "split-large-forms".
Mention that redirect{} now also understands
a single pcrs job as argument.
Add some table summaries and remove useless validator link.
Fabian Keil [Thu, 21 Dec 2006 12:57:48 +0000 (12:57 +0000)]
Add config option "split-large-forms"
to work around the browser bug reported
in BR #
1570678.
Fabian Keil [Thu, 21 Dec 2006 12:28:12 +0000 (12:28 +0000)]
Escaping special characters in filter descriptions is no
longer necessary, it's done by Privoxy now.
Fabian Keil [Thu, 21 Dec 2006 12:22:22 +0000 (12:22 +0000)]
html_encode filter descriptions.
Have "Ignoring job ..." error messages
print the filter file name correctly.
hal9 [Mon, 18 Dec 2006 11:35:04 +0000 (11:35 +0000)]
Remove block from dw.com.com. Put a webbug block on dw.com.com/clear.
+fast_redirects then for dw.com.com per tracker report #
1617829.
Fabian Keil [Sun, 17 Dec 2006 19:35:19 +0000 (19:35 +0000)]
Escape ampersand in Privoxy menu.
Fabian Keil [Sun, 17 Dec 2006 19:15:26 +0000 (19:15 +0000)]
Added ./configure switch for FEATURE_GRACEFUL_TERMINATION.
Fabian Keil [Sun, 17 Dec 2006 17:57:56 +0000 (17:57 +0000)]
- Added FEATURE_GRACEFUL_TERMINATION to the
"conditional #defines" section
- Escaped ampersands in generated HTML.
- Renamed re-filter-filename to re-filter-filenames
Fabian Keil [Sun, 17 Dec 2006 17:53:39 +0000 (17:53 +0000)]
Suppress the toggle link if remote toggling is disabled.
Fabian Keil [Sun, 17 Dec 2006 17:50:55 +0000 (17:50 +0000)]
Add white space workaround for tables
in show-status CGI page.
Fabian Keil [Sun, 17 Dec 2006 17:49:27 +0000 (17:49 +0000)]
- Fixed markup
- Cleaned up comments
- Added FEATURE_GRACEFUL_TERMINATION to the
"conditional #defines" section
- Renamed @re-filter-filename@ to @re-filter-filenames@
- Removed useless W3C validator link
Fabian Keil [Sun, 17 Dec 2006 17:13:02 +0000 (17:13 +0000)]
Call "the proxy software" by name and use semantically correct HTML.
Fabian Keil [Sun, 17 Dec 2006 17:04:51 +0000 (17:04 +0000)]
Move the <br> in the generated HTML for the config
options from the beginning of the string to its end.
Keeps the white space in balance.
hal9 [Sat, 16 Dec 2006 13:39:10 +0000 (13:39 +0000)]
Added Justin and Adam Piggott to sgml authors.
hal9 [Sat, 16 Dec 2006 13:25:55 +0000 (13:25 +0000)]
Several additions all from recent SF tracker postings. Most for privacy and JS
blocking.
anonymous [Wed, 13 Dec 2006 14:53:51 +0000 (14:53 +0000)]
Include any existing LDFLAGS environment when linking so that a MacOS X Universal Binary can be created.
anonymous [Wed, 13 Dec 2006 14:52:53 +0000 (14:52 +0000)]
Fix build failure on MacOS X. Global symbols can be either static or extern, but not both.
Fabian Keil [Tue, 12 Dec 2006 17:32:23 +0000 (17:32 +0000)]
Added id mbEnd to google filter, it's now and then
used for the sponsored links.
Have js-annoyances try to prevent status bar
modifications where the status bar text is
inside another variable. Fixes
1605710.
hal9 [Mon, 11 Dec 2006 11:18:25 +0000 (11:18 +0000)]
Add unblock pattern for an Amazon gift url.
hal9 [Sun, 10 Dec 2006 23:42:48 +0000 (23:42 +0000)]
Fix various typos reported by Adam P. Thanks.