privoxy.git
20 years agoAdding edit-actions-section-swap
jongfoster [Tue, 22 Jan 2002 23:24:48 +0000 (23:24 +0000)]
Adding edit-actions-section-swap

20 years agoAdding string_join()
jongfoster [Mon, 21 Jan 2002 00:53:36 +0000 (00:53 +0000)]
Adding string_join()

20 years agoAdding map_block_keep() to save a few bytes in the edit-actions-list HTML.
jongfoster [Mon, 21 Jan 2002 00:33:52 +0000 (00:33 +0000)]
Adding map_block_keep() to save a few bytes in the edit-actions-list HTML.

20 years agoReplacing strsav() with the safer string_append() or string_join().
jongfoster [Mon, 21 Jan 2002 00:33:20 +0000 (00:33 +0000)]
Replacing strsav() with the safer string_append() or string_join().
Adding map_block_keep() to save a few bytes in the edit-actions-list HTML.
Adding missing html_encode() to error message generators.
Adding edit-actions-section-swap and many "shortcuts" to the list of CGIs.

20 years agoAllowing free_action(NULL).
jongfoster [Mon, 21 Jan 2002 00:27:02 +0000 (00:27 +0000)]
Allowing free_action(NULL).
Moving the functions that #include actionlist.h to the end of the file,
because the Visual C++ 97 debugger gets extremely confused if you try
to debug any code that comes after them in the file.

20 years agoCorrecting comment style
jongfoster [Mon, 21 Jan 2002 00:14:09 +0000 (00:14 +0000)]
Correcting comment style
Fixing an uninitialized memory bug in create_url_spec()

20 years agoAdding urlmatch.[ch]
jongfoster [Thu, 17 Jan 2002 21:44:04 +0000 (21:44 +0000)]
Adding urlmatch.[ch]

20 years agoReplacing all references to the URL of the config interface
jongfoster [Thu, 17 Jan 2002 21:33:00 +0000 (21:33 +0000)]
Replacing all references to the URL of the config interface
with @default-cgi@

20 years agoFixing quoting of special characters in URLs
jongfoster [Thu, 17 Jan 2002 21:29:28 +0000 (21:29 +0000)]
Fixing quoting of special characters in URLs

Replacing all references to the URL of the config interface
with @default-cgi@

20 years agoAdding newline to end of file
jongfoster [Thu, 17 Jan 2002 21:27:42 +0000 (21:27 +0000)]
Adding newline to end of file

20 years agoAdding warning about https://
jongfoster [Thu, 17 Jan 2002 21:26:45 +0000 (21:26 +0000)]
Adding warning about https://
Fixing quoting of special characters in URLs
iReplacing all references to the URL of the config interface
with @default-cgi@

20 years agoDOS->Unix line endings
jongfoster [Thu, 17 Jan 2002 21:21:05 +0000 (21:21 +0000)]
DOS->Unix line endings

20 years agoChanges to cgi_show_url_info to use new matching code from urlmatch.c.
jongfoster [Thu, 17 Jan 2002 21:10:37 +0000 (21:10 +0000)]
Changes to cgi_show_url_info to use new matching code from urlmatch.c.
Also fixing a problem in the same function with improperly quoted URLs
in output HTML, and adding code to handle https:// URLs correctly.

20 years agoNow #defining the URLs of the config interface
jongfoster [Thu, 17 Jan 2002 21:06:09 +0000 (21:06 +0000)]
Now #defining the URLs of the config interface

Minor changes to struct http_request and struct url_spec due to
standardizing that struct http_request is used to represent a URL, and
struct url_spec is used to represent a URL pattern.  (Before, URLs were
represented as seperate variables and a partially-filled-in url_spec).

20 years agoReplacing hard references to the URL of the config interface
jongfoster [Thu, 17 Jan 2002 21:04:17 +0000 (21:04 +0000)]
Replacing hard references to the URL of the config interface
with #defines from project.h

20 years agoMoving all our URL and URL pattern parsing code to urlmatch.c.
jongfoster [Thu, 17 Jan 2002 21:03:47 +0000 (21:03 +0000)]
Moving all our URL and URL pattern parsing code to urlmatch.c.

20 years agoMoving all our URL and URL pattern parsing code to urlmatch.c.
jongfoster [Thu, 17 Jan 2002 21:03:08 +0000 (21:03 +0000)]
Moving all our URL and URL pattern parsing code to urlmatch.c.

Renaming free_url to free_url_spec, since it frees a struct url_spec.

20 years agoMoving all our URL and URL pattern parsing code to urlmatch.c.
jongfoster [Thu, 17 Jan 2002 21:00:32 +0000 (21:00 +0000)]
Moving all our URL and URL pattern parsing code to urlmatch.c.

Using a single, simple url_match(pattern,url) function - rather than
the 3-line match routine which was repeated all over the place.

Renaming free_url to free_url_spec, since it frees a struct url_spec.

Using parse_http_url() to parse URLs without faking a HTTP
request line for parse_http_request().

20 years agoReplacing hard references to the URL of the config interface
jongfoster [Thu, 17 Jan 2002 20:56:22 +0000 (20:56 +0000)]
Replacing hard references to the URL of the config interface
with #defines from project.h

20 years agoRenaming free_url to free_url_spec, since it frees a struct url_spec.
jongfoster [Thu, 17 Jan 2002 20:54:44 +0000 (20:54 +0000)]
Renaming free_url to free_url_spec, since it frees a struct url_spec.

20 years agoMoving all our URL and URL pattern parsing code to the same file - it
jongfoster [Thu, 17 Jan 2002 20:53:46 +0000 (20:53 +0000)]
Moving all our URL and URL pattern parsing code to the same file - it
was scattered around in filters.c, loaders.c and parsers.c.

Providing a single, simple url_match(pattern,url) function - rather than
the 3-line match routine which was repeated all over the place.

Renaming free_url to free_url_spec, since it frees a struct url_spec.

Providing parse_http_url() so that URLs can be parsed without faking a
HTTP request line for parse_http_request() or repeating the parsing
code (both of which were techniques that were actually in use).

Standardizing that struct http_request is used to represent a URL, and
struct url_spec is used to represent a URL pattern.  (Before, URLs were
represented as seperate variables and a partially-filled-in url_spec).

20 years agoAdded a very short section on Templates
hal9 [Fri, 11 Jan 2002 14:14:32 +0000 (14:14 +0000)]
Added a very short section on Templates

20 years agoAdded templates/* to files section.
hal9 [Fri, 11 Jan 2002 03:19:32 +0000 (03:19 +0000)]
Added templates/* to files section.

20 years agoAdding plain-text copy of GNU GPL
jongfoster [Thu, 10 Jan 2002 22:44:27 +0000 (22:44 +0000)]
Adding plain-text copy of GNU GPL

20 years agoUpdated from acconfig.h
oes [Thu, 10 Jan 2002 12:36:53 +0000 (12:36 +0000)]
Updated from acconfig.h

20 years agoMoved HAVE_*_R to acconfig.h, where they belong.
oes [Thu, 10 Jan 2002 12:36:18 +0000 (12:36 +0000)]
Moved HAVE_*_R to acconfig.h, where they belong.

20 years agoAdded cross-compile defaults to the AC_CHECK_SIZEOF macros
oes [Thu, 10 Jan 2002 12:35:18 +0000 (12:35 +0000)]
Added cross-compile defaults to the AC_CHECK_SIZEOF macros
to silence autoconf warnings. Numbers are for Intel/Linux.
Is there a better way?

20 years agoUpdated. I hope I'm not missing anything serious.
hal9 [Thu, 10 Jan 2002 03:13:45 +0000 (03:13 +0000)]
Updated. I hope I'm not missing anything serious.

20 years agoFix bug re: auto-detect config file changes.
hal9 [Wed, 9 Jan 2002 20:02:50 +0000 (20:02 +0000)]
Fix bug re: auto-detect config file changes.

20 years agoFix big memory leak.
steudten [Wed, 9 Jan 2002 19:05:45 +0000 (19:05 +0000)]
Fix big memory leak.

20 years agoMinor touchups.
hal9 [Wed, 9 Jan 2002 18:52:52 +0000 (18:52 +0000)]
Minor touchups.

20 years agoMinor update
hal9 [Wed, 9 Jan 2002 18:42:32 +0000 (18:42 +0000)]
Minor update

20 years agonit.
hal9 [Wed, 9 Jan 2002 18:34:03 +0000 (18:34 +0000)]
nit.

20 years agoRemoved RPM_OPT_FLAGS kludge.
hal9 [Wed, 9 Jan 2002 18:32:02 +0000 (18:32 +0000)]
Removed RPM_OPT_FLAGS kludge.

20 years agoA few minor updates.
hal9 [Wed, 9 Jan 2002 18:21:10 +0000 (18:21 +0000)]
A few minor updates.

20 years agoTouch ups for *.action files.
hal9 [Wed, 9 Jan 2002 18:20:30 +0000 (18:20 +0000)]
Touch ups for *.action files.

20 years agoAdded HOSTENT_BUFFER_SIZE
oes [Wed, 9 Jan 2002 14:33:27 +0000 (14:33 +0000)]
Added HOSTENT_BUFFER_SIZE

20 years agoAdded support for localtime_r.
oes [Wed, 9 Jan 2002 14:33:03 +0000 (14:33 +0000)]
Added support for localtime_r.

20 years agoAdded support for gethostbyname_r and gethostbyaddr_r.
oes [Wed, 9 Jan 2002 14:32:33 +0000 (14:32 +0000)]
Added support for gethostbyname_r and gethostbyaddr_r.

20 years agoAdded support for gmtime_r and localtime_r.
oes [Wed, 9 Jan 2002 14:32:08 +0000 (14:32 +0000)]
Added support for gmtime_r and localtime_r.

20 years ago- Added AC_CHECK_FUNC tests for the availability of
oes [Wed, 9 Jan 2002 14:29:49 +0000 (14:29 +0000)]
- Added AC_CHECK_FUNC tests for the availability of
  gethostbyname_r, gethostbyaddr_r, gmtime_r and
  localtime_r, as well as AC_TRY_COMPILE tests to
  determine their signatures.

- Fixed a bug with the init of CFLAGS that was
  reported by barsnick

20 years agoUpdated from configure.in
oes [Wed, 9 Jan 2002 14:28:59 +0000 (14:28 +0000)]
Updated from configure.in

20 years agoAdded #defines for use and selection of the right
oes [Wed, 9 Jan 2002 14:27:25 +0000 (14:27 +0000)]
Added #defines for use and selection of the right
signature of the thread-safe *_r calls.

20 years agoAdded support for thread-safe gmtime_r call.
oes [Wed, 9 Jan 2002 14:26:46 +0000 (14:26 +0000)]
Added support for thread-safe gmtime_r call.

20 years agoUpdated from configure.in
oes [Fri, 4 Jan 2002 15:59:38 +0000 (15:59 +0000)]
Updated from configure.in

20 years agoChanged quoting of CODE_STATUS for use in make
oes [Fri, 4 Jan 2002 15:27:18 +0000 (15:27 +0000)]
Changed quoting of CODE_STATUS for use in make

20 years agoAdded tarball-src target
oes [Fri, 4 Jan 2002 15:26:08 +0000 (15:26 +0000)]
Added tarball-src target

20 years ago- Add signal handling (unix)
steudten [Sun, 30 Dec 2001 14:07:32 +0000 (14:07 +0000)]
- Add signal handling (unix)
- Add SIGHUP handler (unix)
- Add creation of pidfile (unix)
- Add action 'top' in rc file (RH)
- Add entry 'SIGNALS' to manpage
- Add exit message to logfile (unix)

20 years agoFix for feature Req #495374: http-equiv problem
steudten [Fri, 28 Dec 2001 23:54:20 +0000 (23:54 +0000)]
Fix for feature Req #495374: http-equiv problem

20 years agoAdd paranoia check and BuildReq: gzip
steudten [Fri, 28 Dec 2001 01:45:36 +0000 (01:45 +0000)]
Add paranoia check and BuildReq: gzip

20 years agoRemove 'user:pass@' from 'proto://user:pass@host' for the
steudten [Fri, 14 Dec 2001 01:22:54 +0000 (01:22 +0000)]
Remove 'user:pass@' from 'proto://user:pass@host' for the
new added header 'Host: ..'. (See Req ID 491818)

20 years agoAdd 'restart' of junkbuster service after rotate logfiles.
steudten [Thu, 13 Dec 2001 23:19:43 +0000 (23:19 +0000)]
Add 'restart' of junkbuster service after rotate logfiles.
Better we could use the well known 'kill -HUP', but the handler
isn't there at this time.

20 years agoFixed Bug: 503 error page now sent OK
oes [Thu, 13 Dec 2001 14:07:18 +0000 (14:07 +0000)]
Fixed Bug: 503 error page now sent OK

20 years agofirst attempt. plz verify and test.
swa [Tue, 11 Dec 2001 22:07:26 +0000 (22:07 +0000)]
first attempt. plz verify and test.

20 years agoChange from "alpha" to "beta" in configure.in
David Schmidt [Sun, 9 Dec 2001 20:24:42 +0000 (20:24 +0000)]
Change from "alpha" to "beta" in configure.in

20 years agoUpdated CODE_STATUS to beta, commented out microsuck line in re_filterfile
David Schmidt [Sun, 9 Dec 2001 18:55:11 +0000 (18:55 +0000)]
Updated CODE_STATUS to beta, commented out microsuck line in re_filterfile
for 2.9.10 beta

20 years agoA contribution/recomendation to the IJBSWA group for a generic doubly
iwanttokeepanon [Fri, 7 Dec 2001 01:54:50 +0000 (01:54 +0000)]
A contribution/recomendation to the IJBSWA group for a generic doubly
linked list.  This file is a home brew "bash tar" (I cannot create a
contrib directory and I cannot upload a tarball ... it gets
corrupted).  This script will expand all files needed to create the
linked list modules and an example program.  Please see the README.
Feed back is welcomed.  Enjoy.

20 years agoCVS corrupted the tar archive, rendering it useless.
iwanttokeepanon [Tue, 4 Dec 2001 01:45:35 +0000 (01:45 +0000)]
CVS corrupted the tar archive, rendering it useless.

How the @!#%$#!@# do I add my linked list contrib?

20 years agoThis list supports:
iwanttokeepanon [Tue, 4 Dec 2001 01:24:58 +0000 (01:24 +0000)]
This list supports:
copy construction,
"virtual" destruction,
streaming,
comparison (equal comparison currently supported).

With the "object oriented" nature of the list, nodes, and records; it is
easily concievable that sorted lists and hash tables could be implemented
with little extra effort.

Philosophical point:

I am sure there is room for improvement with this design.  I am
submitting this as a generic doubly linked list recomendation for IJB.
Whatever the "collective" decides is fine with me.

This implementation uses the "naming space" of gen_list, derived_rec,
construct, copy construct, stream, destruct, etc...  These are open to
argument.  I just used what was familiar to me and others in the "OO"
community.  If these need changed to be adopted ... "so be it".

Implementation point:

I assume this is too late for a "3.0" release.  As I work for an
airline, the whole past summer has been hectic (not to mention the
last 4 months); but things have begun to settle down and I am
following the IJB lists a bit more closely.  And I would like to say
"HOLY CRAP!" .. you guys have accompolished a lot!  Way to go.

But, the adoption of a better linked list package should at least be
high on the next release list (if not the current one).  If you choose
this submission or not, so be it.  But as a "data structure" man, I
think IJB's linked lists need addressing.

List/Enlist note:

I have noticed the list.c file.  If this generic list is adopted, I
think all existing functionallity could be duplicated with the
"copy_contruct", "equal", and "destruct" `virtuals'.  This would also
eliminate and/or enhance the other manually maintained lists in IJB.

Debug note:

Since the generic list defined a "stream" virtual, it could be programmed
that the list could print itself whenever a FATAL error occurs.  A user (or
programmer) could read the list and hopefully determine the cause of the
abend.

Potential note:

Think of the possibilites of a linked list, sorted list, and/or a hash
list.  Think of a request to a web site that has been referenced
before.  If a hash list keep track of all block requests and regexp
change commands, then a site could be blocked and/or modified without
ever consulting the actions lists again.  What a speed up!

What if some of the current lists were kept in sorted lists?  Then a
search for a particular record could be a binary search instead of a
linear search.

The actions file(s) and regexp files(s) could be inserted into the
list from front to back order (or visa versa) and the processing would
take place in actual file order (which is more natural); rather than
in reverse order (as it is today).

Thank you for you time and attention to this contribution.  If it is
"blessed" by the group, I am available to give time to integrating
this into IJB.

Let me know what y'all think about this package.

--
Rodney

20 years agoAdded new actions files. Changed to 'beta'.
hal9 [Sun, 2 Dec 2001 18:34:30 +0000 (18:34 +0000)]
Added new actions files. Changed to 'beta'.

20 years agoI could not commit .action files.
swa [Sun, 2 Dec 2001 15:28:11 +0000 (15:28 +0000)]
I could not commit .action files.

20 years agoTemplate for the action file in three
swa [Sun, 2 Dec 2001 15:26:49 +0000 (15:26 +0000)]
Template for the action file in three
different ways: basic (with simple,
widely used actions), intermediate
(with more agressive actions) and
advanced (with most agressive actions
that demonstrate what JB is capable
of).

20 years ago2.9.10
swa [Sun, 2 Dec 2001 15:17:22 +0000 (15:17 +0000)]
2.9.10

20 years agotypo
swa [Sun, 2 Dec 2001 15:16:53 +0000 (15:16 +0000)]
typo

20 years agoNew version made these changes necessary.
swa [Sun, 2 Dec 2001 10:29:26 +0000 (10:29 +0000)]
New version made these changes necessary.

20 years agoFix typo.
hal9 [Sun, 2 Dec 2001 01:14:16 +0000 (01:14 +0000)]
Fix typo.

20 years agoFix typo
hal9 [Sun, 2 Dec 2001 01:03:12 +0000 (01:03 +0000)]
Fix typo

20 years agoUpdates for recent changes.
hal9 [Sun, 2 Dec 2001 00:20:41 +0000 (00:20 +0000)]
Updates for recent changes.

20 years agofix stupid typo.
hal9 [Sun, 2 Dec 2001 00:19:56 +0000 (00:19 +0000)]
fix stupid typo.

20 years agoUpdate for recent changes.
hal9 [Sun, 2 Dec 2001 00:16:20 +0000 (00:16 +0000)]
Update for recent changes.

20 years agoChanged cookie example for Jon's new stuff.
hal9 [Sun, 2 Dec 2001 00:15:54 +0000 (00:15 +0000)]
Changed cookie example for Jon's new stuff.

20 years agonit
hal9 [Sat, 1 Dec 2001 23:44:33 +0000 (23:44 +0000)]
nit

20 years agoFirst committal
hal9 [Sat, 1 Dec 2001 22:51:33 +0000 (22:51 +0000)]
First committal

20 years agoijb.action updates.
hal9 [Sat, 1 Dec 2001 21:52:34 +0000 (21:52 +0000)]
ijb.action updates.

20 years agoactionsfile -> ijb.action
hal9 [Sat, 1 Dec 2001 21:48:39 +0000 (21:48 +0000)]
actionsfile -> ijb.action

20 years agoAllowed for new ijb.action file.
hal9 [Sat, 1 Dec 2001 21:43:14 +0000 (21:43 +0000)]
Allowed for new ijb.action file.

20 years agoRegenerating from latest configure.in v_2_9_10
jongfoster [Sat, 1 Dec 2001 11:26:40 +0000 (11:26 +0000)]
Regenerating from latest configure.in

20 years agoWill display a warning if non-GNU make is used
jongfoster [Sat, 1 Dec 2001 11:24:29 +0000 (11:24 +0000)]
Will display a warning if non-GNU make is used

20 years agoRenaming Makefile.in to GNUmakefile.in so that non-GNU versions of
jongfoster [Sat, 1 Dec 2001 11:24:01 +0000 (11:24 +0000)]
Renaming Makefile.in to GNUmakefile.in so that non-GNU versions of
make break in a more obvious way.

20 years agoRenaming Makefile.in to GNUmakefile.in so that non-GNU versions of
jongfoster [Sat, 1 Dec 2001 11:22:57 +0000 (11:22 +0000)]
Renaming Makefile.in to GNUmakefile.in so that non-GNU versions of
make break in a more obvious way.
Adding .PHONY section.

20 years agoRenaming various config files
jongfoster [Sat, 1 Dec 2001 00:24:11 +0000 (00:24 +0000)]
Renaming various config files
Fixing CR->CRLF under Win32 (I hope)

20 years agoRenaming the Win32 config file to config.txt - this is almost the
jongfoster [Fri, 30 Nov 2001 23:37:24 +0000 (23:37 +0000)]
Renaming the Win32 config file to config.txt - this is almost the
same as the corresponding UNIX name "config"

20 years agoRenaming actionsfile to ijb.action
jongfoster [Fri, 30 Nov 2001 23:35:51 +0000 (23:35 +0000)]
Renaming actionsfile to ijb.action

20 years agoMaking +no-cookie-keep -no-cookies the default. Comments on this
jongfoster [Fri, 30 Nov 2001 23:34:08 +0000 (23:34 +0000)]
Making +no-cookie-keep -no-cookies the default.  Comments on this
approach would be appreciated.
Should have fixed most match-subdirectory patterns so they will also
match the root directory
Removed sites which needed -no-cookies, except for shops.

20 years agoRenaming actionsfile to ijb.action
jongfoster [Fri, 30 Nov 2001 23:14:17 +0000 (23:14 +0000)]
Renaming actionsfile to ijb.action

20 years agoNow reports on FEATURE_CGI_EDIT_ACTIONS
jongfoster [Fri, 30 Nov 2001 23:09:15 +0000 (23:09 +0000)]
Now reports on FEATURE_CGI_EDIT_ACTIONS
Removing FEATURE_DENY_GZIP from template

20 years agoBumping version number to 2.9.10
jongfoster [Fri, 30 Nov 2001 21:35:54 +0000 (21:35 +0000)]
Bumping version number to 2.9.10

20 years agoFixing signed/unsigned comparison (Andreas please check this!)
jongfoster [Fri, 30 Nov 2001 21:32:14 +0000 (21:32 +0000)]
Fixing signed/unsigned comparison (Andreas please check this!)
One tab->space

20 years agoFixing a warning
jongfoster [Fri, 30 Nov 2001 21:29:33 +0000 (21:29 +0000)]
Fixing a warning

20 years agoFixing two really stupid errors in my previous commit
jongfoster [Fri, 23 Nov 2001 00:26:38 +0000 (00:26 +0000)]
Fixing two really stupid errors in my previous commit

20 years agoAdding code to handle +no-cookies-keep
jongfoster [Thu, 22 Nov 2001 21:59:30 +0000 (21:59 +0000)]
Adding code to handle +no-cookies-keep

20 years agoAdding action +no-cookies-keep
jongfoster [Thu, 22 Nov 2001 21:58:41 +0000 (21:58 +0000)]
Adding action +no-cookies-keep

20 years agoMaking action_spec->flags into an unsigned long rather than just an
jongfoster [Thu, 22 Nov 2001 21:57:51 +0000 (21:57 +0000)]
Making action_spec->flags into an unsigned long rather than just an
unsigned int.
Adding ACTION_NO_COOKIE_KEEP

20 years agoMaking action_spec->flags into an unsigned long rather than just an
jongfoster [Thu, 22 Nov 2001 21:56:49 +0000 (21:56 +0000)]
Making action_spec->flags into an unsigned long rather than just an
unsigned int.
Fixing a bug in the display of -add-header and -wafer

20 years agoAdding Gabor Liptak, who reported a bug with the CygWin build.
jongfoster [Fri, 16 Nov 2001 00:58:47 +0000 (00:58 +0000)]
Adding Gabor Liptak, who reported a bug with the CygWin build.

20 years agoAdding VC build directories to ignore list
jongfoster [Fri, 16 Nov 2001 00:52:45 +0000 (00:52 +0000)]
Adding VC build directories to ignore list

20 years agoEnabling duplicate-socket detection for all platforms, not
jongfoster [Fri, 16 Nov 2001 00:48:48 +0000 (00:48 +0000)]
Enabling duplicate-socket detection for all platforms, not
just Win32.

20 years agoFixing a compiler warning
jongfoster [Fri, 16 Nov 2001 00:48:13 +0000 (00:48 +0000)]
Fixing a compiler warning

20 years agoChanging the tty-disconnection code to use setsid().
jongfoster [Fri, 16 Nov 2001 00:47:43 +0000 (00:47 +0000)]
Changing the tty-disconnection code to use setsid().

20 years agoFixing compiler warnings
jongfoster [Fri, 16 Nov 2001 00:46:31 +0000 (00:46 +0000)]
Fixing compiler warnings