privoxy.git
17 years agoUse zalloc in cgi_send_user_manual.
Fabian Keil [Fri, 12 Jan 2007 15:07:10 +0000 (15:07 +0000)]
Use zalloc in cgi_send_user_manual.

17 years agoCorrect a cast, check inflateEnd() exit code
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.

17 years agoFix strdup() error handling in cgi_error_unknown()
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.

17 years agoAmigaOS4 support added.
joergs [Sun, 7 Jan 2007 07:43:43 +0000 (07:43 +0000)]
AmigaOS4 support added.

17 years agoAdded AmigaOS4 support and made it work on AmigaOS 3.x with current sources.
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.

17 years agoDisabled -pipe for AmigaOS4.
joergs [Sun, 7 Jan 2007 07:38:10 +0000 (07:38 +0000)]
Disabled -pipe for AmigaOS4.

17 years agoAdded AmigaOS4 support.
joergs [Sun, 7 Jan 2007 07:36:36 +0000 (07:36 +0000)]
Added AmigaOS4 support.

17 years agoMark *csp as immutable for parse_http_url()
Fabian Keil [Sat, 6 Jan 2007 14:24:38 +0000 (14:24 +0000)]
Mark *csp as immutable for parse_http_url()
and url_match().

17 years agoFix gcc43 warnings. Mark *csp as immutable
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.

17 years agoDon't use strlen() to calculate the length of
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].

17 years agoHandle pcrs_execute() errors in template_fill() properly.
Fabian Keil [Fri, 5 Jan 2007 14:19:02 +0000 (14:19 +0000)]
Handle pcrs_execute() errors in template_fill() properly.

17 years agoFix a gcc43 warning and mark the binbuffer
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().

17 years agoAdd FEATURE_ZLIB to the list of conditional
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.

17 years agoUlrich Spoerlein's patch to remove whitespace
David Schmidt [Tue, 2 Jan 2007 01:39:52 +0000 (01:39 +0000)]
Ulrich Spoerlein's patch to remove whitespace

17 years agoIntegrate a modified version of Wil Mahan's
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).

17 years agoSkip empty filter files in filter_header()
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.

17 years agoAdded config option accept-intercepted-requests
Fabian Keil [Sun, 31 Dec 2006 17:56:38 +0000 (17:56 +0000)]
Added config option accept-intercepted-requests
and disabled it by default.

17 years agoFix gcc43 compiler warnings and a comment.
Fabian Keil [Sun, 31 Dec 2006 15:03:31 +0000 (15:03 +0000)]
Fix gcc43 compiler warnings and a comment.

17 years agoFix gcc43 compiler warnings.
Fabian Keil [Sun, 31 Dec 2006 14:25:20 +0000 (14:25 +0000)]
Fix gcc43 compiler warnings.

17 years agoReverted parts of my last commit
Fabian Keil [Fri, 29 Dec 2006 19:08:22 +0000 (19:08 +0000)]
Reverted parts of my last commit
to keep error handling working.

17 years agoFixed gcc43 conversion warnings,
Fabian Keil [Fri, 29 Dec 2006 18:30:46 +0000 (18:30 +0000)]
Fixed gcc43 conversion warnings,
changed sprintf calls to snprintf.

17 years agoFixed gcc43 conversion warnings.
Fabian Keil [Fri, 29 Dec 2006 18:04:40 +0000 (18:04 +0000)]
Fixed gcc43 conversion warnings.

17 years agoFixed gcc43 conversion warnings.
Fabian Keil [Fri, 29 Dec 2006 17:53:05 +0000 (17:53 +0000)]
Fixed gcc43 conversion warnings.

17 years agoFixed gcc43 conversion warnings.
Fabian Keil [Fri, 29 Dec 2006 17:38:57 +0000 (17:38 +0000)]
Fixed gcc43 conversion warnings.

17 years agoFixed gcc43 warning and enabled list_is_valid()'s loop
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.

17 years agoFixed gcc43 compiler warning.
Fabian Keil [Thu, 28 Dec 2006 18:25:53 +0000 (18:25 +0000)]
Fixed gcc43 compiler warning.

17 years agoFixed gcc43 compiler warnings, zero out cgi_send_user_manual's
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.

17 years agoFixed gcc43 conversion warnings.
Fabian Keil [Thu, 28 Dec 2006 18:04:25 +0000 (18:04 +0000)]
Fixed gcc43 conversion warnings.

17 years agoFixed gcc43 conversion warnings and replaced sprintf
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.

17 years agoFix gcc43 conversion warning.
Fabian Keil [Thu, 28 Dec 2006 17:15:42 +0000 (17:15 +0000)]
Fix gcc43 conversion warning.

17 years agoSeveral updates from recent SF activity.
hal9 [Thu, 28 Dec 2006 11:23:43 +0000 (11:23 +0000)]
Several updates from recent SF activity.

17 years agoFix -pedantic ISO C warning about converting
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.

17 years agoStop shadowing string.h's index().
Fabian Keil [Wed, 27 Dec 2006 18:44:52 +0000 (18:44 +0000)]
Stop shadowing string.h's index().

17 years agoSilence compiler warning I introduced with my last commit.
Fabian Keil [Tue, 26 Dec 2006 17:38:50 +0000 (17:38 +0000)]
Silence compiler warning I introduced with my last commit.

17 years agoMutex protect rand() if POSIX threading
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.

17 years agoBringing back the "useless" localtime() call
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.

17 years agoAdjust comment in pcrs_filter_response()
Fabian Keil [Sun, 24 Dec 2006 17:37:38 +0000 (17:37 +0000)]
Adjust comment in pcrs_filter_response()
to recent pcrs changes. Hohoho.

17 years agoAdd pcrs_strerror() message for PCRE_ERROR_MATCHLIMIT
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().

17 years agoIncrease pcrs error code offset to prevent overlaps
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.

17 years agoDon't prevent core dumps by catching SIGABRT.
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.

17 years agoDon't crash if pcre returns an error code
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.

17 years agoAdd some new entries.
Fabian Keil [Fri, 22 Dec 2006 19:14:11 +0000 (19:14 +0000)]
Add some new entries.

17 years agoAdded contributor Daniel Griscom who suggested to give a
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).

17 years agoModified is_untrusted_url to complain in case of
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.

17 years agoSkip empty filter files in pcrs_filter_response,
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.

17 years agoRemoved checks whether or not AF_FILES have
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.

17 years agoPrepare for "split-large-forms".
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.

17 years agoAdd config option "split-large-forms"
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.

17 years agoEscaping special characters in filter descriptions is no
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.

17 years agohtml_encode filter descriptions.
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.

17 years agoRemove block from dw.com.com. Put a webbug block on dw.com.com/clear.
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.

17 years agoEscape ampersand in Privoxy menu.
Fabian Keil [Sun, 17 Dec 2006 19:35:19 +0000 (19:35 +0000)]
Escape ampersand in Privoxy menu.

17 years agoAdded ./configure switch for FEATURE_GRACEFUL_TERMINATION.
Fabian Keil [Sun, 17 Dec 2006 19:15:26 +0000 (19:15 +0000)]
Added ./configure switch for FEATURE_GRACEFUL_TERMINATION.

17 years ago- Added FEATURE_GRACEFUL_TERMINATION to the
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

17 years agoSuppress the toggle link if remote toggling is disabled.
Fabian Keil [Sun, 17 Dec 2006 17:53:39 +0000 (17:53 +0000)]
Suppress the toggle link if remote toggling is disabled.

17 years agoAdd white space workaround for tables
Fabian Keil [Sun, 17 Dec 2006 17:50:55 +0000 (17:50 +0000)]
Add white space workaround for tables
in show-status CGI page.

17 years ago- Fixed markup
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

17 years agoCall "the proxy software" by name and use semantically correct HTML.
Fabian Keil [Sun, 17 Dec 2006 17:13:02 +0000 (17:13 +0000)]
Call "the proxy software" by name and use semantically correct HTML.

17 years agoMove the <br> in the generated HTML for the config
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.

17 years agoAdded Justin and Adam Piggott to sgml authors.
hal9 [Sat, 16 Dec 2006 13:39:10 +0000 (13:39 +0000)]
Added Justin and Adam Piggott to sgml authors.

17 years agoSeveral additions all from recent SF tracker postings. Most for privacy and JS
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.

17 years agoInclude any existing LDFLAGS environment when linking so that a MacOS X Universal...
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.

17 years agoFix build failure on MacOS X. Global symbols can be either static or extern, but...
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.

17 years agoAdded id mbEnd to google filter, it's now and then
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.

17 years agoAdd unblock pattern for an Amazon gift url.
hal9 [Mon, 11 Dec 2006 11:18:25 +0000 (11:18 +0000)]
Add unblock pattern for an Amazon gift url.

17 years agoFix various typos reported by Adam P. Thanks.
hal9 [Sun, 10 Dec 2006 23:42:48 +0000 (23:42 +0000)]
Fix various typos reported by Adam P. Thanks.

17 years agoMerge in Debian changes from Debian packages 3.0.5-beta-3 and 3.0.6-1.
Roland Rosenfeld [Sat, 9 Dec 2006 17:20:13 +0000 (17:20 +0000)]
Merge in Debian changes from Debian packages 3.0.5-beta-3 and 3.0.6-1.

17 years agoFix configure option --disable-toggle.
Fabian Keil [Sat, 9 Dec 2006 13:49:16 +0000 (13:49 +0000)]
Fix configure option --disable-toggle.
Thanks to Peter Thoenen for reporting this.

17 years agoAdded some sanity checks for get_last_url().
Fabian Keil [Sat, 9 Dec 2006 13:33:15 +0000 (13:33 +0000)]
Added some sanity checks for get_last_url().
Fixed possible segfault caused by my last commit.

17 years agoDon't lose the FORCE_PREFIX in case of
Fabian Keil [Fri, 8 Dec 2006 14:45:32 +0000 (14:45 +0000)]
Don't lose the FORCE_PREFIX in case of
connection problems. Fixes #612235.

17 years agoSync with CVS changes since the last release.
Fabian Keil [Fri, 8 Dec 2006 13:27:42 +0000 (13:27 +0000)]
Sync with CVS changes since the last release.

17 years agoLet get_last_url() catch https URLs as well.
Fabian Keil [Fri, 8 Dec 2006 12:39:13 +0000 (12:39 +0000)]
Let get_last_url() catch https URLs as well.

17 years agoRebuild request URL in get_destination_from_headers()
Fabian Keil [Thu, 7 Dec 2006 18:44:26 +0000 (18:44 +0000)]
Rebuild request URL in get_destination_from_headers()
to make sure redirect{pcrs command} works as expected
for intercepted requests.

17 years agoAdd Fabian's nice new addition for intercepting.
hal9 [Thu, 7 Dec 2006 11:25:46 +0000 (11:25 +0000)]
Add Fabian's nice new addition for intercepting.

17 years agoAdded get_destination_from_headers().
Fabian Keil [Wed, 6 Dec 2006 19:52:25 +0000 (19:52 +0000)]
Added get_destination_from_headers().

17 years agoparse_http_url() now handles intercepted
Fabian Keil [Wed, 6 Dec 2006 19:50:54 +0000 (19:50 +0000)]
parse_http_url() now handles intercepted
HTTP request lines as well. Moved parts
of parse_http_url()'s code into
init_domain_components() so that it can
be reused in chat().

17 years agoPrivoxy is now able to run as intercepting
Fabian Keil [Wed, 6 Dec 2006 19:41:40 +0000 (19:41 +0000)]
Privoxy is now able to run as intercepting
proxy in combination with any packet filter
that does the port redirection. The destination
is extracted from the "Host:" header which
should be available for nearly all requests.

Moved HTTP snipplets into jcc.c.
Added error message for gopher proxy requests.

17 years agoMoved HTTP snipplets into jcc.c. They aren't
Fabian Keil [Wed, 6 Dec 2006 19:26:29 +0000 (19:26 +0000)]
Moved HTTP snipplets into jcc.c. They aren't
used anywhere else.

17 years agoAdded prototype for get_destination_from_headers().
Fabian Keil [Wed, 6 Dec 2006 19:14:23 +0000 (19:14 +0000)]
Added prototype for get_destination_from_headers().

17 years agoAdded prototype for init_domain_components().
Fabian Keil [Wed, 6 Dec 2006 19:12:43 +0000 (19:12 +0000)]
Added prototype for init_domain_components().

17 years agoMake sure get_last_url() behaves like advertised
Fabian Keil [Tue, 5 Dec 2006 14:45:48 +0000 (14:45 +0000)]
Make sure get_last_url() behaves like advertised
and fast-redirects{} can be combined with redirect{}.

17 years agoTwo minor updates per SF tracker items.
hal9 [Sun, 3 Dec 2006 21:23:33 +0000 (21:23 +0000)]
Two minor updates per SF tracker items.

17 years agoFix problem with variable declarations in the Slackware section. Thanks to higuita.
hal9 [Thu, 30 Nov 2006 01:08:55 +0000 (01:08 +0000)]
Fix problem with variable declarations in the Slackware section. Thanks to higuita.

17 years agoOnly unlink the pidfile if it's actually used.
Fabian Keil [Tue, 28 Nov 2006 15:38:51 +0000 (15:38 +0000)]
Only unlink the pidfile if it's actually used.

Change order of interception checks to make
it possible to block or redirect requests for
the cgi pages.

17 years agoFix memory leak in case of config file reloads.
Fabian Keil [Tue, 28 Nov 2006 15:31:52 +0000 (15:31 +0000)]
Fix memory leak in case of config file reloads.

17 years agoDefine LOG_LEVEL_REDIRECTS independently of
Fabian Keil [Tue, 28 Nov 2006 15:29:50 +0000 (15:29 +0000)]
Define LOG_LEVEL_REDIRECTS independently of
FEATURE_FAST_REDIRECTS. It is used by redirect{}
as well.

17 years agoOnly unlink the pidfile if it's actually used.
Fabian Keil [Tue, 28 Nov 2006 15:25:15 +0000 (15:25 +0000)]
Only unlink the pidfile if it's actually used.

17 years agoImplemented +redirect{s@foo@bar@} to generate
Fabian Keil [Tue, 28 Nov 2006 15:19:43 +0000 (15:19 +0000)]
Implemented +redirect{s@foo@bar@} to generate
a redirect based on a rewritten version of the
original URL.

17 years agoFix the prep section per Support request so it actually builds.
hal9 [Tue, 28 Nov 2006 11:34:35 +0000 (11:34 +0000)]
Fix the prep section per Support request so it actually builds.

17 years agoUpdate to recent version as of November 2006.
Fabian Keil [Thu, 23 Nov 2006 14:08:47 +0000 (14:08 +0000)]
Update to recent version as of November 2006.

17 years agoActionsfile feedback item #1597034, espace.netavenir.com popups
hal9 [Thu, 23 Nov 2006 13:27:39 +0000 (13:27 +0000)]
Actionsfile feedback item #1597034, espace.netavenir.com popups

17 years agoAdded Toby Lyward to the list of contributors
Fabian Keil [Thu, 23 Nov 2006 10:26:16 +0000 (10:26 +0000)]
Added Toby Lyward to the list of contributors
(reported a Slackware rc script problem).

17 years agoAdd /js/slider.js per Actions file tracker request.
hal9 [Wed, 22 Nov 2006 15:06:08 +0000 (15:06 +0000)]
Add  /js/slider.js per Actions file tracker request.

17 years agoSetting version to 3.0.7 UNRELEASED for lack of a better setting.
hal9 [Tue, 21 Nov 2006 18:32:46 +0000 (18:32 +0000)]
Setting version to 3.0.7 UNRELEASED for lack of a better setting.

17 years agoJust getting it ready for next time.
hal9 [Tue, 21 Nov 2006 18:30:56 +0000 (18:30 +0000)]
Just getting it ready for next time.

17 years agoAdd special treatment for WIN32 to make sure
Fabian Keil [Tue, 21 Nov 2006 15:43:12 +0000 (15:43 +0000)]
Add special treatment for WIN32 to make sure
cgi_send_user_manual opens the files in binary mode.
Fixes BR 1600411 and unbreaks image delivery.

Remove outdated comment.

17 years agoUpdated with post 3.0.6 commentary.
hal9 [Tue, 21 Nov 2006 12:39:11 +0000 (12:39 +0000)]
Updated with post 3.0.6 commentary.

17 years agoTaking out the http 1.0/1.1 commentary per Fabians comments
hal9 [Tue, 21 Nov 2006 12:36:31 +0000 (12:36 +0000)]
Taking out the http 1.0/1.1 commentary per Fabians comments

17 years agoOoops, bumping version to 3.0.6 v_3_0_6
hal9 [Sat, 18 Nov 2006 17:36:53 +0000 (17:36 +0000)]
Ooops, bumping version to 3.0.6

17 years agoMark as stable.
Fabian Keil [Sat, 18 Nov 2006 14:42:51 +0000 (14:42 +0000)]
Mark as stable.