privoxy.git
23 years agoNew function string_append() which is like strsav(), but running
jongfoster [Sun, 14 Oct 2001 22:02:57 +0000 (22:02 +0000)]
New function string_append() which is like strsav(), but running
out of memory isn't automatically FATAL.

23 years agoAdding support for a 404 error when an invalid CGI page is requested.
jongfoster [Sun, 14 Oct 2001 22:00:32 +0000 (22:00 +0000)]
Adding support for a 404 error when an invalid CGI page is requested.

23 years agoAdding support for the CGI-based editor:
jongfoster [Sun, 14 Oct 2001 21:58:22 +0000 (21:58 +0000)]
Adding support for the CGI-based editor:
- Exported get_actions()
- Added new function free_alias_list()
- Added support for {{settings}} and {{description}} blocks
  in the actions file.  They are currently ignored.
- Added restriction to only one {{alias}} block which must appear
  first in the file, to simplify the editor's rewriting rules.
- Note that load_actions_file() is no longer used by the CGI-based
  editor, but some of the other routines in this file are.

23 years agoFixed WebBug filter.
joergs [Sat, 13 Oct 2001 13:11:20 +0000 (13:11 +0000)]
Fixed WebBug filter.

23 years agoRemoved client_host, (was only required for the old 2.0.2-11 http://noijb.
joergs [Sat, 13 Oct 2001 12:51:51 +0000 (12:51 +0000)]
Removed client_host, (was only required for the old 2.0.2-11 noijb.
force-load), instead crumble Host: and add it (again) in client_host_adder
(in case we get a HTTP/1.0 request without Host: header and forward it to
a HTTP/1.1 server/proxy).

23 years agoRemoved client_host, added client_host_adder
joergs [Sat, 13 Oct 2001 12:47:32 +0000 (12:47 +0000)]
Removed client_host, added client_host_adder

23 years agoAdded #undef EINTR to avoid warnings
joergs [Sat, 13 Oct 2001 12:46:08 +0000 (12:46 +0000)]
Added #undef EINTR to avoid warnings

23 years agoAdded in Andreas's new actions.
hal9 [Thu, 11 Oct 2001 03:44:24 +0000 (03:44 +0000)]
Added in Andreas's new actions.

23 years agoMoving some code that wasn't cookie-related out of an #ifdef
jongfoster [Wed, 10 Oct 2001 19:56:46 +0000 (19:56 +0000)]
Moving some code that wasn't cookie-related out of an #ifdef
FEATURE_COOKIE_JAR

23 years agoMinor change for init script.
hal9 [Wed, 10 Oct 2001 18:59:28 +0000 (18:59 +0000)]
Minor change for init script.

23 years agoVery minor changes.
hal9 [Wed, 10 Oct 2001 17:28:33 +0000 (17:28 +0000)]
Very minor changes.

23 years agoAdded LIMIT_CONNECT action and string
oes [Wed, 10 Oct 2001 16:45:15 +0000 (16:45 +0000)]
Added LIMIT_CONNECT action and string
Fixed HTTP message line termination
Added CFORBIDDEN HTTP message

23 years agoAdded CONNECT destination port limitation check
oes [Wed, 10 Oct 2001 16:44:36 +0000 (16:44 +0000)]
Added CONNECT destination port limitation check

23 years agoAdded match_portlist function
oes [Wed, 10 Oct 2001 16:44:16 +0000 (16:44 +0000)]
Added match_portlist function

23 years agoAdded documentation for +limit-connect action, added exception for my bank
oes [Wed, 10 Oct 2001 16:43:39 +0000 (16:43 +0000)]
Added documentation for +limit-connect action, added exception for my bank

23 years agoFixed a bug, Added +limit-connect string action
oes [Wed, 10 Oct 2001 16:42:52 +0000 (16:42 +0000)]
Fixed a bug, Added +limit-connect string action

23 years agoAdded ugly hack to make install target work at least for some setups.
oes [Wed, 10 Oct 2001 12:43:33 +0000 (12:43 +0000)]
Added ugly hack to make install target work at least for some setups.

23 years agoFailiure to load template now fatal. Before, the user got a hard-to-understand assert...
oes [Wed, 10 Oct 2001 10:56:39 +0000 (10:56 +0000)]
Failiure to load template now fatal. Before, the user got a hard-to-understand assertion failure from cgi.c

23 years agoassert.h is also required under Win32, so moving out of #ifndef _WIN32 v_2_9_9
jongfoster [Tue, 9 Oct 2001 22:39:21 +0000 (22:39 +0000)]
assert.h is also required under Win32, so moving out of #ifndef _WIN32
block.

23 years agoCorrecting actionsfile filename for Win32 INI build
jongfoster [Tue, 9 Oct 2001 22:38:19 +0000 (22:38 +0000)]
Correcting actionsfile filename for Win32 INI build

23 years agoRe-enabled SSL forwarding
oes [Mon, 8 Oct 2001 15:17:41 +0000 (15:17 +0000)]
Re-enabled SSL forwarding

23 years agoAdded server_content_encoding, renamed server_transfer_encoding
oes [Sun, 7 Oct 2001 18:50:55 +0000 (18:50 +0000)]
Added server_content_encoding, renamed server_transfer_encoding

23 years agoAdded status member to struct http_request
oes [Sun, 7 Oct 2001 18:06:43 +0000 (18:06 +0000)]
Added status member to struct http_request

23 years agoChanged server_http11 to server_http and its pattern to "HTTP".
oes [Sun, 7 Oct 2001 18:04:49 +0000 (18:04 +0000)]
Changed server_http11 to server_http and its pattern to "HTTP".
  Additional functionality: it now saves the HTTP status into
  csp->http->status and sets CT_TABOO for Status 206 (partial range)

23 years agoChanged server_http11 to server_http
oes [Sun, 7 Oct 2001 18:01:55 +0000 (18:01 +0000)]
Changed server_http11 to server_http

23 years agoFollowed Guy's proposal to change the document.cookie job
oes [Sun, 7 Oct 2001 15:46:42 +0000 (15:46 +0000)]
Followed Guy's proposal to change the document.cookie job

23 years agoadded client_accept_encoding, client_te, client_accept_encoding_adder
oes [Sun, 7 Oct 2001 15:45:48 +0000 (15:45 +0000)]
added client_accept_encoding, client_te, client_accept_encoding_adder

renamed content_type and content_length

fixed client_host and strclean prototypes

23 years agoAdded url member to struct http_request and commented all
oes [Sun, 7 Oct 2001 15:45:25 +0000 (15:45 +0000)]
Added url member to struct http_request and commented all
  members

Added CT_TABOO

Added ACTION_DOWNGRADE and ACTION_NO_COMPRESSION

Replaced struct client_state members rejected,
  force, active and toggled_on with "flags" bitmap.

Added CSP_FLAG_MODIFIED and CSP_FLAG_CHUNKED

Added buffer_limit to struct configuration_spec

23 years agoRemoved FEATURE_DENY_GZIP and replaced it with client_accept_encoding,
oes [Sun, 7 Oct 2001 15:43:28 +0000 (15:43 +0000)]
Removed FEATURE_DENY_GZIP and replaced it with client_accept_encoding,
   client_te and client_accept_encoding_adder, triggered by the new
   +no-compression action. For HTTP/1.1 the Accept-Encoding header is
   changed to allow only identity and chunked, and the TE header is
   crunched. For HTTP/1.0, Accept-Encoding is crunched.

parse_http_request no longer does anything than parsing. The rewriting
  of http->cmd and version mangling are gone. It now also recognizes
  the put and delete methods and saves the url in http->url. Removed
  unused variable.

renamed content_type and content_length to have the server_ prefix

server_content_type now only works if csp->content_type != CT_TABOO

added server_transfer_encoding, which
  - Sets CT_TABOO to prohibit filtering if encoding compresses
  - Raises the CSP_FLAG_CHUNKED flag if Encoding is "chunked"
  - Change from "chunked" to "identity" if body was chunked
    but has been de-chunked for filtering.

added server_content_md5 which crunches any Content-MD5 headers
  if the body was modified.

made server_http11 conditional on +downgrade action

Replaced 6 boolean members of csp with one bitmap (csp->flags)

23 years agofilter_popups now gets a csp pointer so it can raise the new
oes [Sun, 7 Oct 2001 15:42:41 +0000 (15:42 +0000)]
filter_popups now gets a csp pointer so it can raise the new
  CSP_FLAG_MODIFIED flag.

23 years agoReplaced 6 boolean members of csp with one bitmap (csp->flags)
oes [Sun, 7 Oct 2001 15:42:11 +0000 (15:42 +0000)]
Replaced 6 boolean members of csp with one bitmap (csp->flags)

Moved downgrading of the HTTP version from parse_http_request to
  chat(), since we can't decide if it is necessary before we have
  determined the actions for the URL. The HTTP command is now
  *always* re-built so the repairs need no longer be special-cased.

filter_popups now gets a csp pointer so it can raise the new
  CSP_FLAG_MODIFIED flag.

Bugfix

Added configurable size limit for the IOB. If the IOB grows so
  large that the next read would exceed the limit, the header
  is generated, and the header & unfiltered buffer are flushed
  to the client. Chat then continues in non-buffering,
  non-filtering body mode.

23 years agoAdded prototype for remove_chunked_transfer_coding
oes [Sun, 7 Oct 2001 15:41:40 +0000 (15:41 +0000)]
Added prototype for remove_chunked_transfer_coding

23 years agoReplaced 6 boolean members of csp with one bitmap (csp->flags)
oes [Sun, 7 Oct 2001 15:41:23 +0000 (15:41 +0000)]
Replaced 6 boolean members of csp with one bitmap (csp->flags)

New function remove_chunked_transfer_coding that strips chunked
  transfer coding to plain and is called by pcrs_filter_response
  and gif_deanimate_response if neccessary

Improved handling of zero-change re_filter runs

pcrs_filter_response and gif_deanimate_response now remove
  chunked transfer codeing before processing the body.

23 years agoReplaced 6 boolean members of csp with one bitmap (csp->flags)
oes [Sun, 7 Oct 2001 15:40:39 +0000 (15:40 +0000)]
Replaced 6 boolean members of csp with one bitmap (csp->flags)

23 years agoUpdated from configure.in
oes [Sun, 7 Oct 2001 15:38:31 +0000 (15:38 +0000)]
Updated from configure.in

23 years agoUpdated from acconfig.h
oes [Sun, 7 Oct 2001 15:37:56 +0000 (15:37 +0000)]
Updated from acconfig.h

23 years agoIntroduced new config option "buffer-limit"
oes [Sun, 7 Oct 2001 15:36:00 +0000 (15:36 +0000)]
Introduced new config option "buffer-limit"

23 years agoReplaced 6 boolean members of csp with one bitmap (csp->flags)
oes [Sun, 7 Oct 2001 15:35:13 +0000 (15:35 +0000)]
Replaced 6 boolean members of csp with one bitmap (csp->flags)

23 years agoIntroduced a +no-compression action
oes [Sun, 7 Oct 2001 15:33:59 +0000 (15:33 +0000)]
Introduced a +no-compression action
Introduced a +downgrade action

23 years agoRemoved FEATURE_DENY_GZIP
oes [Sun, 7 Oct 2001 15:33:14 +0000 (15:33 +0000)]
Removed FEATURE_DENY_GZIP
Bumped up version number

23 years agoRemoved FEATURE_DENY_GZIP
oes [Sun, 7 Oct 2001 15:30:41 +0000 (15:30 +0000)]
Removed FEATURE_DENY_GZIP

23 years agoCrumble Keep-Alive from Server
oes [Fri, 5 Oct 2001 14:25:02 +0000 (14:25 +0000)]
Crumble Keep-Alive from Server

23 years agoOoops
oes [Tue, 2 Oct 2001 18:13:57 +0000 (18:13 +0000)]
Ooops

23 years agoMoved generation of hdr
oes [Tue, 2 Oct 2001 15:32:13 +0000 (15:32 +0000)]
Moved generation of hdr

23 years agoIntroduced show-request cgi
oes [Tue, 2 Oct 2001 15:31:20 +0000 (15:31 +0000)]
Introduced show-request cgi

23 years agoIJB now changes HTTP/1.1 to HTTP/1.0 in requests and answers.
joergs [Sat, 29 Sep 2001 12:56:03 +0000 (12:56 +0000)]
IJB now changes HTTP/1.1 to HTTP/1.0 in requests and answers.

23 years agoDitto :/
hal9 [Fri, 28 Sep 2001 02:57:04 +0000 (02:57 +0000)]
Ditto :/

23 years agoDitto.
hal9 [Fri, 28 Sep 2001 02:25:20 +0000 (02:25 +0000)]
Ditto.

23 years agoFixing my markup errors :(
hal9 [Fri, 28 Sep 2001 02:18:12 +0000 (02:18 +0000)]
Fixing my markup errors :(

23 years agoA few changes. A short section on regular expression in appendix.
hal9 [Thu, 27 Sep 2001 23:50:29 +0000 (23:50 +0000)]
A few changes. A short section on regular expression in appendix.

23 years agoSome additions, and re-arranging.
hal9 [Tue, 25 Sep 2001 00:34:59 +0000 (00:34 +0000)]
Some additions, and re-arranging.

23 years agoFixing 2 memory leaks that Guy spotted, where the paramater to
jongfoster [Mon, 24 Sep 2001 21:09:24 +0000 (21:09 +0000)]
Fixing 2 memory leaks that Guy spotted, where the paramater to
enlist() was not being free()d.

23 years agoMinor changes.
hal9 [Mon, 24 Sep 2001 20:56:23 +0000 (20:56 +0000)]
Minor changes.

23 years agoDiddling.
hal9 [Mon, 24 Sep 2001 14:31:36 +0000 (14:31 +0000)]
Diddling.

23 years agoIncluding David's OS/2 installation instructions.
hal9 [Mon, 24 Sep 2001 14:10:32 +0000 (14:10 +0000)]
Including David's OS/2 installation instructions.

23 years agoAdded info about where OS/2 puts its log file vs. Unix and Windows.
David Schmidt [Mon, 24 Sep 2001 04:18:43 +0000 (04:18 +0000)]
Added info about where OS/2 puts its log file vs. Unix and Windows.

23 years agoDraft. Unfinished.
hal9 [Mon, 24 Sep 2001 01:27:56 +0000 (01:27 +0000)]
Draft. Unfinished.

23 years agoSomehow I managed to lose the license and style information. Doh!
jongfoster [Sun, 23 Sep 2001 15:52:10 +0000 (15:52 +0000)]
Somehow I managed to lose the license and style information.  Doh!

23 years agoAdding another link
jongfoster [Sun, 23 Sep 2001 13:53:24 +0000 (13:53 +0000)]
Adding another link

23 years agoAdding SourceForge logo as required by their ToS - see
jongfoster [Sun, 23 Sep 2001 13:40:58 +0000 (13:40 +0000)]
Adding SourceForge logo as required by their ToS - see
http://sourceforge.net/docman/display_doc.php?docid=790&group_id=1

23 years agoReplacing with a page containing links to the other pages on this
jongfoster [Sun, 23 Sep 2001 13:22:00 +0000 (13:22 +0000)]
Replacing with a page containing links to the other pages on this
site, the SourceForge project pages, and various other useful sites.

23 years agoupload process established. run make webserver and
swa [Sun, 23 Sep 2001 10:13:48 +0000 (10:13 +0000)]
upload process established. run make webserver and
the documentation is moved to the webserver. documents
are now linked correctly.

23 years agodefault page from sourceforge
swa [Sun, 23 Sep 2001 09:56:08 +0000 (09:56 +0000)]
default page from sourceforge

23 years agoRemoving unused parameter fs from read_config_line()
jongfoster [Sat, 22 Sep 2001 16:36:59 +0000 (16:36 +0000)]
Removing unused parameter fs from read_config_line()

23 years agoRemoving unneeded #includes
jongfoster [Sat, 22 Sep 2001 16:34:44 +0000 (16:34 +0000)]
Removing unneeded #includes

23 years agoRemoving unused #includes.
jongfoster [Sat, 22 Sep 2001 16:32:28 +0000 (16:32 +0000)]
Removing unused #includes.

23 years agoDisplaying an error message whenever the config directory is read.
jongfoster [Sat, 22 Sep 2001 14:55:41 +0000 (14:55 +0000)]
Displaying an error message whenever the config directory is read.

23 years agoTelling robots not to touch /config/ - if there's a JunkBuster
jongfoster [Sat, 22 Sep 2001 14:55:03 +0000 (14:55 +0000)]
Telling robots not to touch /config/ - if there's a JunkBuster
proxy between the robot and the web server, then accessing
/config can affect the proxy.

23 years agoAdding proper license
jongfoster [Sat, 22 Sep 2001 14:53:46 +0000 (14:53 +0000)]
Adding proper license

23 years agoAdding proper copyright notice
jongfoster [Sat, 22 Sep 2001 14:52:02 +0000 (14:52 +0000)]
Adding proper copyright notice
Removing a character that just appeared at the start of the file.

23 years agoBugfix: Multiple escaped "#" characters in a configuration
jongfoster [Sat, 22 Sep 2001 14:05:22 +0000 (14:05 +0000)]
Bugfix: Multiple escaped "#" characters in a configuration
file are now permitted.
Also removing 3 unused headers.

23 years agoCleaning up 2 compiler warnings on OS/2.
David Schmidt [Fri, 21 Sep 2001 23:02:02 +0000 (23:02 +0000)]
Cleaning up 2 compiler warnings on OS/2.

23 years agoAdded filter to replace "Nimda" code by a warning.
joergs [Fri, 21 Sep 2001 12:34:00 +0000 (12:34 +0000)]
Added filter to replace "Nimda" code by a warning.

23 years agoAdd casting for some string functions.
steudten [Thu, 20 Sep 2001 16:11:06 +0000 (16:11 +0000)]
Add casting for some string functions.

23 years agoFix BUG: Change int size to size_t size in pcrs_filter_response().
steudten [Thu, 20 Sep 2001 15:49:36 +0000 (15:49 +0000)]
Fix BUG: Change int size to size_t size in pcrs_filter_response().
See cgi.c fill_template().

23 years agoFix BUG: Modify int size to size_t size in fill_template()
steudten [Thu, 20 Sep 2001 15:47:44 +0000 (15:47 +0000)]
Fix BUG: Modify int size to size_t size in fill_template()
 - removes big trouble on machines where sizeof(int) != sizeof(size_t).

23 years agoadd casting from size_t to int for printf()
steudten [Thu, 20 Sep 2001 15:45:25 +0000 (15:45 +0000)]
add casting from size_t to int for printf()
remove local variable shadow s2

23 years agochange long to int for prototype hash_string()
steudten [Thu, 20 Sep 2001 13:34:09 +0000 (13:34 +0000)]
change long to int for prototype hash_string()

23 years agochange long to int as return value in hash_string(). Remember the wraparound
steudten [Thu, 20 Sep 2001 13:33:43 +0000 (13:33 +0000)]
change long to int as return value in hash_string(). Remember the wraparound
for int = long = sizeof(4) - thats maybe not what we want.

23 years agoMake freez() more secure in case of: if (exp) { free(z) ; a=*z }
steudten [Thu, 20 Sep 2001 13:30:08 +0000 (13:30 +0000)]
Make freez() more secure in case of: if (exp) { free(z) ; a=*z }
Last case will set z to NULL in free(z) and thats bad..

23 years agoFixed comments; cosmetics
oes [Wed, 19 Sep 2001 18:01:11 +0000 (18:01 +0000)]
Fixed comments; cosmetics

23 years ago - Deletef time() FIXME (Can't fail under Linux either, if
oes [Wed, 19 Sep 2001 18:00:37 +0000 (18:00 +0000)]
 - Deletef time() FIXME (Can't fail under Linux either, if
   the argument is guaranteed to be in out address space,
   which it is.)
 - Fixed comments
 - Pointer notation cosmetics
 - Fixed a minor bug in template_fill(): Failiure of
   pcrs_execute() now secure.

23 years agoFixed CFLAGS
oes [Wed, 19 Sep 2001 17:55:49 +0000 (17:55 +0000)]
Fixed CFLAGS

23 years agoFixing a warning
jongfoster [Sun, 16 Sep 2001 23:04:34 +0000 (23:04 +0000)]
Fixing a warning

23 years agoFixing warning
jongfoster [Sun, 16 Sep 2001 23:02:51 +0000 (23:02 +0000)]
Fixing warning

23 years agoRemoving showargs.[ch], adding cgi(simple|edit).[ch]
jongfoster [Sun, 16 Sep 2001 17:35:53 +0000 (17:35 +0000)]
Removing showargs.[ch], adding cgi(simple|edit).[ch]

23 years agoRemoving showargs.[ch], adding cgi(simple|edit).[ch]
jongfoster [Sun, 16 Sep 2001 17:34:27 +0000 (17:34 +0000)]
Removing showargs.[ch], adding cgi(simple|edit).[ch]
Replacing $(OBJEXT) with @OBJEXT@ - this seems to be a common source
of build problems.

23 years agoFixing a compiler warning.
jongfoster [Sun, 16 Sep 2001 17:30:24 +0000 (17:30 +0000)]
Fixing a compiler warning.

23 years agoAll the functions in this file have been moved to cgisimple.c or loadcfg.c
jongfoster [Sun, 16 Sep 2001 17:11:46 +0000 (17:11 +0000)]
All the functions in this file have been moved to cgisimple.c or loadcfg.c

23 years agoMoving function savearg() here, since it was the only thing left in
jongfoster [Sun, 16 Sep 2001 17:10:43 +0000 (17:10 +0000)]
Moving function savearg() here, since it was the only thing left in
showargs.c.

23 years agoMoving simple CGI functions from cgi.c to new file cgisimple.c
jongfoster [Sun, 16 Sep 2001 17:08:54 +0000 (17:08 +0000)]
Moving simple CGI functions from cgi.c to new file cgisimple.c

23 years agoRemoving unused #include showarg.h
jongfoster [Sun, 16 Sep 2001 17:05:14 +0000 (17:05 +0000)]
Removing unused #include showarg.h

23 years agoBugfix - couldn't build resources with previous version.
jongfoster [Sun, 16 Sep 2001 16:59:34 +0000 (16:59 +0000)]
Bugfix - couldn't build resources with previous version.

23 years agoNew version based on latest configure.in and acconfig.h
jongfoster [Sun, 16 Sep 2001 16:19:02 +0000 (16:19 +0000)]
New version based on latest configure.in and acconfig.h

23 years agoFirst version of CGI-based edit interface. This is very much a
jongfoster [Sun, 16 Sep 2001 15:47:37 +0000 (15:47 +0000)]
First version of CGI-based edit interface.  This is very much a
work-in-progress, and you can't actually use it to edit anything
yet.  You must #define FEATURE_CGI_EDIT_ACTIONS for these changes
to have any effect.

23 years agoFixing signed/unsigned comparison warning.
jongfoster [Sun, 16 Sep 2001 15:41:45 +0000 (15:41 +0000)]
Fixing signed/unsigned comparison warning.

23 years agoAdding i.j.b/robots.txt.
jongfoster [Sun, 16 Sep 2001 15:02:35 +0000 (15:02 +0000)]
Adding i.j.b/robots.txt.
Inlining add_stats() since it's only ever called from one place.

23 years agoChanges to use new list functions.
jongfoster [Sun, 16 Sep 2001 13:21:27 +0000 (13:21 +0000)]
Changes to use new list functions.

23 years agoRewrite of list library. Now has seperate header and list_entry
jongfoster [Sun, 16 Sep 2001 13:20:29 +0000 (13:20 +0000)]
Rewrite of list library.  Now has seperate header and list_entry
structures.  Also added a large sprinking of assert()s to the list
code.

23 years agoRemoving redundant function call that zeroed zalloc()'d memory.
jongfoster [Sun, 16 Sep 2001 13:01:46 +0000 (13:01 +0000)]
Removing redundant function call that zeroed zalloc()'d memory.