]> granicus.if.org Git - apache/log
apache
21 years agoPoint to the correct download location.
Joshua Slive [Mon, 1 Sep 2003 19:05:33 +0000 (19:05 +0000)]
Point to the correct download location.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101147 13f79535-47bb-0310-9956-ffa450edef68

21 years agoTypos...
Erik Abele [Sun, 31 Aug 2003 18:01:25 +0000 (18:01 +0000)]
Typos...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101143 13f79535-47bb-0310-9956-ffa450edef68

21 years agoResolve the ap_get_client_block() showstopper by looking at APR_BRIGADE_LAST
Justin Erenkrantz [Sun, 31 Aug 2003 16:14:39 +0000 (16:14 +0000)]
Resolve the ap_get_client_block() showstopper by looking at APR_BRIGADE_LAST
of what we get from ap_get_brigade and set a nugget for our next call to
pick up on.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101141 13f79535-47bb-0310-9956-ffa450edef68

21 years ago* ssl_engine_io.c (ssl_io_filter_connect): Check the
Joe Orton [Fri, 29 Aug 2003 14:45:26 +0000 (14:45 +0000)]
* ssl_engine_io.c (ssl_io_filter_connect): Check the
library code as well as the reason code when looking for the
plain-HTTP-request error.

Submitted by: Stephen Henson <steve@openssl.org>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101135 13f79535-47bb-0310-9956-ffa450edef68

21 years agodocument the recent mod_include changes
André Malo [Fri, 29 Aug 2003 00:32:16 +0000 (00:32 +0000)]
document the recent mod_include changes

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101132 13f79535-47bb-0310-9956-ffa450edef68

21 years agoallow the undefined echo string to be configured via
André Malo [Thu, 28 Aug 2003 23:59:58 +0000 (23:59 +0000)]
allow the undefined echo string to be configured via
<!--#config echomsg="..." -->

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101130 13f79535-47bb-0310-9956-ffa450edef68

21 years agoallow SSIUndefinedEcho per directory
André Malo [Thu, 28 Aug 2003 23:20:44 +0000 (23:20 +0000)]
allow SSIUndefinedEcho per directory

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101129 13f79535-47bb-0310-9956-ffa450edef68

21 years agoadd information about the == operator, && / || priorities and
André Malo [Thu, 28 Aug 2003 15:37:17 +0000 (15:37 +0000)]
add information about the == operator, && / || priorities and
expression optimization/debugging

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101124 13f79535-47bb-0310-9956-ffa450edef68

21 years agoUpdated the various MPM's to use the new bucket_alloc_create_ex API
Cliff Woolley [Thu, 28 Aug 2003 05:54:44 +0000 (05:54 +0000)]
Updated the various MPM's to use the new bucket_alloc_create_ex API
when necessary.  Which is to say that it's necessary in all cases except
for prefork, where the change to apr-util to have it use the allocator
from the pool passed in is already sufficient.

Reviewed by: Jean-Jacques Clar, Sander Striker, Brad Nicholes

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101122 13f79535-47bb-0310-9956-ffa450edef68

21 years agoaxe some warnings:
Cliff Woolley [Thu, 28 Aug 2003 05:41:32 +0000 (05:41 +0000)]
axe some warnings:

mod_dav_lock.c:72: warning: no previous prototype for `dav_generic_get_lockdb_path'
locks.c: In function `dav_generic_really_open_lockdb':
locks.c:356: warning: unused variable `db'
locks.c: In function `dav_generic_load_lock_record':
locks.c:606: warning: unused variable `buf'
locks.c: In function `dav_generic_remove_lock':
locks.c:1081: warning: unused variable `buf'

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101121 13f79535-47bb-0310-9956-ffa450edef68

21 years agobe nice and accept == as well as token_eq.
André Malo [Thu, 28 Aug 2003 01:35:46 +0000 (01:35 +0000)]
be nice and accept == as well as token_eq.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101120 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup the TOKEN_AND/OR tree generation code.
André Malo [Thu, 28 Aug 2003 01:13:11 +0000 (01:13 +0000)]
cleanup the TOKEN_AND/OR tree generation code.
- check more exactly whether the previous token is correct
- flip the tree from left-weighted to right-weighted, which is
  more natural and more efficient, since we don't need to loop
  up to the root, but just until the next and/or token.
- that way, flip the short circuit evaluation again to cut
  the right side now if possible...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101119 13f79535-47bb-0310-9956-ffa450edef68

21 years agothe extra buffer variable is no longer needed.
André Malo [Wed, 27 Aug 2003 23:09:51 +0000 (23:09 +0000)]
the extra buffer variable is no longer needed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101118 13f79535-47bb-0310-9956-ffa450edef68

21 years agoMake sure that the global ap_max_mem_free is initialized along with the
Bradley Nicholes [Wed, 27 Aug 2003 22:33:12 +0000 (22:33 +0000)]
Make sure that the global ap_max_mem_free is initialized along with the
other MPM globals whenever HTTPD is started or restarted.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101117 13f79535-47bb-0310-9956-ffa450edef68

21 years agosimplifications. Don't repeat the same code again and again.
André Malo [Wed, 27 Aug 2003 21:36:03 +0000 (21:36 +0000)]
simplifications. Don't repeat the same code again and again.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101116 13f79535-47bb-0310-9956-ffa450edef68

21 years agohrm. reverting my last commit. TOKEN_GROUP is a protection against many
André Malo [Wed, 27 Aug 2003 20:26:28 +0000 (20:26 +0000)]
hrm. reverting my last commit. TOKEN_GROUP is a protection against many
invalid expressions. Checking these all manually would take a lot more
cycles than it'd save. Sorry.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101115 13f79535-47bb-0310-9956-ffa450edef68

21 years agoTOKEN_GROUP is nothing but an identity operator, it gateways the
André Malo [Wed, 27 Aug 2003 19:32:35 +0000 (19:32 +0000)]
TOKEN_GROUP is nothing but an identity operator, it gateways the
result of the enclosed expression. Since this expression will never
touched again during the tree-building stage, we can safely strip
TOKEN_GROUP from the tree and later evaluate the child directly.

The only side effect of this change is, that grouped strings on the
left side of EQ/NE/etc are now allowed (was invalid before), which
is acceptable IMHO (e.g. (foo bar baz) = zzzip)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101114 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup TOKEN_EQ, NE, LT & co tree generator:
André Malo [Wed, 27 Aug 2003 18:00:47 +0000 (18:00 +0000)]
cleanup TOKEN_EQ, NE, LT & co tree generator:
- the left side of such an operator can *only* be a string
- get a rid of the while-loop and re-organize the code
  to better reflect what we're actually doing there

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101113 13f79535-47bb-0310-9956-ffa450edef68

21 years agominor optimization.
André Malo [Wed, 27 Aug 2003 15:35:13 +0000 (15:35 +0000)]
minor optimization.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101111 13f79535-47bb-0310-9956-ffa450edef68

21 years agoforgot to add these debugging outputs
André Malo [Wed, 27 Aug 2003 14:04:51 +0000 (14:04 +0000)]
forgot to add these debugging outputs

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101110 13f79535-47bb-0310-9956-ffa450edef68

21 years agoimprove debugging output
André Malo [Tue, 26 Aug 2003 17:20:16 +0000 (17:20 +0000)]
improve debugging output

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101107 13f79535-47bb-0310-9956-ffa450edef68

21 years agosince our parse tree is left-weighted, the short circuit evaluation
André Malo [Tue, 26 Aug 2003 00:32:03 +0000 (00:32 +0000)]
since our parse tree is left-weighted, the short circuit evaluation
is way more useful if we short circuit the left side. So evaluate
the right side first. This, however, reverses my statement about
regex optimization (you have to put them onto the right side of an
&& or || operator to get a chance that the left side will be cutted).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101105 13f79535-47bb-0310-9956-ffa450edef68

21 years agoTOKEN_RE is only valid on the right side of EQ or NE. (previously this
André Malo [Mon, 25 Aug 2003 23:37:47 +0000 (23:37 +0000)]
TOKEN_RE is only valid on the right side of EQ or NE. (previously this
error was caught during the evaluation stage)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101104 13f79535-47bb-0310-9956-ffa450edef68

21 years agoTOKEN_NOT and TOKEN_LBRACE duplicate exactly the same tree generation
André Malo [Mon, 25 Aug 2003 22:52:48 +0000 (22:52 +0000)]
TOKEN_NOT and TOKEN_LBRACE duplicate exactly the same tree generation
code. Get a rid of this duplication.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101103 13f79535-47bb-0310-9956-ffa450edef68

21 years agoreadability improvement. Handle the case of the current token being the
André Malo [Mon, 25 Aug 2003 22:06:45 +0000 (22:06 +0000)]
readability improvement. Handle the case of the current token being the
first parsed explicitly. There's probably also a minor performance improvement
on invalid expressions ... ;-)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101102 13f79535-47bb-0310-9956-ffa450edef68

21 years agoshorten the code by reversing the case conditions
André Malo [Mon, 25 Aug 2003 21:22:37 +0000 (21:22 +0000)]
shorten the code by reversing the case conditions

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101101 13f79535-47bb-0310-9956-ffa450edef68

21 years agofix compiler warning on win32
André Malo [Mon, 25 Aug 2003 19:56:00 +0000 (19:56 +0000)]
fix compiler warning on win32

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101100 13f79535-47bb-0310-9956-ffa450edef68

21 years agoMake some regex examples a little more exact.
Joshua Slive [Mon, 25 Aug 2003 16:47:42 +0000 (16:47 +0000)]
Make some regex examples a little more exact.

Submitted by: Jari Alto <jari.aalto@poboxes.com>
PR: 22348

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101098 13f79535-47bb-0310-9956-ffa450edef68

21 years agoshort circuit && and || evaluation. For backwards compat this is only
André Malo [Mon, 25 Aug 2003 16:05:13 +0000 (16:05 +0000)]
short circuit && and || evaluation. For backwards compat this is only
possible if there's no regex on the short circuited side (since it fills
in the backref data). The user may optimize this by putting the regex
onto the left side of the operator.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101097 13f79535-47bb-0310-9956-ffa450edef68

21 years ago* listen.c (ap_listen_open): Avoid casts when checking for :: and
Joe Orton [Mon, 25 Aug 2003 16:00:49 +0000 (16:00 +0000)]
* listen.c (ap_listen_open): Avoid casts when checking for :: and
0.0.0.0 to fix build on FreeBSD 4.2, and fix logic.

Reviewed by: Colm MacCarthaigh

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101096 13f79535-47bb-0310-9956-ffa450edef68

21 years agosimplify the dumper code
André Malo [Mon, 25 Aug 2003 15:36:51 +0000 (15:36 +0000)]
simplify the dumper code

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101095 13f79535-47bb-0310-9956-ffa450edef68

21 years agoif the tokenizer hits a string which begins with a backslash, this
André Malo [Mon, 25 Aug 2003 03:30:50 +0000 (03:30 +0000)]
if the tokenizer hits a string which begins with a backslash, this
backslash will be skipped and not recognized as an escape character.
That way, <!--#if expr="\)"--> or the like won't work correctly.
Fix it now.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101093 13f79535-47bb-0310-9956-ffa450edef68

21 years agosame cleanup applies to TOKEN_LBRACE
André Malo [Mon, 25 Aug 2003 02:49:19 +0000 (02:49 +0000)]
same cleanup applies to TOKEN_LBRACE

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101091 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup TOKEN_NOT tree generation code:
André Malo [Mon, 25 Aug 2003 02:21:20 +0000 (02:21 +0000)]
cleanup TOKEN_NOT tree generation code:
- remove useless stuff
- shorten the code by inverting the switch/case conditions

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101090 13f79535-47bb-0310-9956-ffa450edef68

21 years agokeep the parse tree consistent if a binary operator occurs within
André Malo [Mon, 25 Aug 2003 01:46:24 +0000 (01:46 +0000)]
keep the parse tree consistent if a binary operator occurs within
parentheses.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101088 13f79535-47bb-0310-9956-ffa450edef68

21 years agoHa! Wrote this combined tree dumper and consistency checker just for fun.
André Malo [Mon, 25 Aug 2003 00:16:04 +0000 (00:16 +0000)]
Ha! Wrote this combined tree dumper and consistency checker just for fun.

...and saw that the expression parser generates inconsistent trees under
some circumstances. So I've decided that the dumper code may be of public
interest :). The actual bugfixes will follow later.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101087 13f79535-47bb-0310-9956-ffa450edef68

21 years agoReflect backported change into 2.0.48.
Justin Erenkrantz [Mon, 25 Aug 2003 00:13:19 +0000 (00:13 +0000)]
Reflect backported change into 2.0.48.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101086 13f79535-47bb-0310-9956-ffa450edef68

21 years agoFixup IPv6 Listen statements on Linux by attempting to bind in the order
Justin Erenkrantz [Sun, 24 Aug 2003 22:43:36 +0000 (22:43 +0000)]
Fixup IPv6 Listen statements on Linux by attempting to bind in the order
that getaddrinfo() returned to us and skipping binding to IPv4 addresses
if the previous bind was to an IPv6 of the same address and port.

Justin made some style changes, added a (struct in6_addr*) to make it compile
on *BSD as well as an attempt to make the addition of the listener to the list
a little more efficient.

Submitted by: Colm MacCarthaigh <colm@stdlib.net>
Reviewed by: Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101083 13f79535-47bb-0310-9956-ffa450edef68

21 years agotypo
André Malo [Sun, 24 Aug 2003 16:16:36 +0000 (16:16 +0000)]
typo

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101081 13f79535-47bb-0310-9956-ffa450edef68

21 years agoreplace is_only_below stuff with apr_filepath_merge. I hope the flags
André Malo [Sun, 24 Aug 2003 16:04:43 +0000 (16:04 +0000)]
replace is_only_below stuff with apr_filepath_merge. I hope the flags
are correct :)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101080 13f79535-47bb-0310-9956-ffa450edef68

21 years agoremove the rest of the artifical string limitations
André Malo [Sun, 24 Aug 2003 00:35:22 +0000 (00:35 +0000)]
remove the rest of the artifical string limitations

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101079 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup the conditional expression parser for
André Malo [Sun, 24 Aug 2003 00:25:42 +0000 (00:25 +0000)]
cleanup the conditional expression parser for
- improved efficiency and memory footprint
- improved readability
- style
This includes an overhaul of the debugging macros, mostly
that they are not always in the way if one tries to understand
the code ;-)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101078 13f79535-47bb-0310-9956-ffa450edef68

21 years agostyle
André Malo [Sat, 23 Aug 2003 14:22:10 +0000 (14:22 +0000)]
style

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101074 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup regex stuff. regexps are now handled more graceful
André Malo [Sat, 23 Aug 2003 13:54:17 +0000 (13:54 +0000)]
cleanup regex stuff. regexps are now handled more graceful
(give warnings on out of range or undefined captures).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101073 13f79535-47bb-0310-9956-ffa450edef68

21 years agodon't waste memory, if someone configures another error message or
André Malo [Sat, 23 Aug 2003 03:53:34 +0000 (03:53 +0000)]
don't waste memory, if someone configures another error message or
timeformat during runtime. The common case doesn't need max_string_len
at all and won't be configured more than one or two times.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101071 13f79535-47bb-0310-9956-ffa450edef68

21 years agooverhaul of ap_ssi_parse_string
André Malo [Sat, 23 Aug 2003 03:27:51 +0000 (03:27 +0000)]
overhaul of ap_ssi_parse_string
- improve efficiency and memory footprint (don't use the power-of-two
  allocator)
- allow the combination of out = NULL && length = 0, which means that
  the resulting expansion is unlimited in length

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101070 13f79535-47bb-0310-9956-ffa450edef68

21 years agodrop superfluous argument from ap_ssi_parse_string.
André Malo [Fri, 22 Aug 2003 23:14:30 +0000 (23:14 +0000)]
drop superfluous argument from ap_ssi_parse_string.
The new API should now be stable.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101069 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_printenv function
André Malo [Fri, 22 Aug 2003 23:03:35 +0000 (23:03 +0000)]
cleanup handle_printenv function

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101068 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_set function
André Malo [Fri, 22 Aug 2003 22:44:37 +0000 (22:44 +0000)]
cleanup handle_set function

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101067 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_else and handle_endif functions
André Malo [Fri, 22 Aug 2003 22:03:17 +0000 (22:03 +0000)]
cleanup handle_else and handle_endif functions

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101066 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_elif function. It now allow only one argument as well.
André Malo [Fri, 22 Aug 2003 21:46:00 +0000 (21:46 +0000)]
cleanup handle_elif function. It now allow only one argument as well.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101065 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_if function. It now allow only one expr="..." argument.
André Malo [Fri, 22 Aug 2003 21:35:06 +0000 (21:35 +0000)]
cleanup handle_if function. It now allow only one expr="..." argument.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101064 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_flastmod function
André Malo [Fri, 22 Aug 2003 21:16:14 +0000 (21:16 +0000)]
cleanup handle_flastmod function

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101063 13f79535-47bb-0310-9956-ffa450edef68

21 years agofix doc typo
Stas Bekman [Fri, 22 Aug 2003 20:57:32 +0000 (20:57 +0000)]
fix doc typo
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101061 13f79535-47bb-0310-9956-ffa450edef68

21 years agoclarify that filter_init_func is used only in the http protocol filters
Stas Bekman [Fri, 22 Aug 2003 20:40:13 +0000 (20:40 +0000)]
clarify that filter_init_func is used only in the http protocol filters
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101059 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_fsize function
André Malo [Fri, 22 Aug 2003 07:40:48 +0000 (07:40 +0000)]
cleanup handle_fsize function

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101057 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_config function
André Malo [Fri, 22 Aug 2003 05:15:58 +0000 (05:15 +0000)]
cleanup handle_config function

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101055 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_echo function
André Malo [Fri, 22 Aug 2003 04:54:59 +0000 (04:54 +0000)]
cleanup handle_echo function

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101054 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup handle_include function.
André Malo [Fri, 22 Aug 2003 04:34:07 +0000 (04:34 +0000)]
cleanup handle_include function.
- use new ctx->argc member
- simplify code nesting and improve readability

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101053 13f79535-47bb-0310-9956-ffa450edef68

21 years ago- clean up configuration routines
André Malo [Fri, 22 Aug 2003 02:46:46 +0000 (02:46 +0000)]
- clean up configuration routines
- give bndm a neater interface
- naming style improvements

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101052 13f79535-47bb-0310-9956-ffa450edef68

21 years agothese should be const.
André Malo [Fri, 22 Aug 2003 02:23:41 +0000 (02:23 +0000)]
these should be const.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101051 13f79535-47bb-0310-9956-ffa450edef68

21 years agobefore working further, bring some kind of system into the stuff
André Malo [Fri, 22 Aug 2003 00:15:28 +0000 (00:15 +0000)]
before working further, bring some kind of system into the stuff
and (re-)order the code. That should finally improve readability...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101049 13f79535-47bb-0310-9956-ffa450edef68

21 years agofurther cleanup. No *real* code change. (mostly macro cleanup)
André Malo [Thu, 21 Aug 2003 23:29:21 +0000 (23:29 +0000)]
further cleanup. No *real* code change. (mostly macro cleanup)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101048 13f79535-47bb-0310-9956-ffa450edef68

21 years agoadjust mod_cgi and mod_cgid
André Malo [Thu, 21 Aug 2003 22:12:08 +0000 (22:12 +0000)]
adjust mod_cgi and mod_cgid
bump MMN for API change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101047 13f79535-47bb-0310-9956-ffa450edef68

21 years agobump mod_include's external API. The API is now more simple and expected
André Malo [Thu, 21 Aug 2003 22:01:34 +0000 (22:01 +0000)]
bump mod_include's external API. The API is now more simple and expected
to be better extensible without breaking binary compatibility, since an
opaque pointer to internal structures is part of the public context.
(We can easily add APi functions that operate on this internal struct).

I've tried to keep this change as small as possible - sorry for the big
diff though, but the commit should be atomic. mod_cgi and mod_cgid won't
compile until the next commit, anyway.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101046 13f79535-47bb-0310-9956-ffa450edef68

21 years agoinclude_cmd doesn't imply the CGI interface. That code seems to be
André Malo [Wed, 20 Aug 2003 22:47:52 +0000 (22:47 +0000)]
include_cmd doesn't imply the CGI interface. That code seems to be
a c&p accident.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101039 13f79535-47bb-0310-9956-ffa450edef68

21 years agonow drop the old code
André Malo [Wed, 20 Aug 2003 16:41:27 +0000 (16:41 +0000)]
now drop the old code

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101037 13f79535-47bb-0310-9956-ffa450edef68

21 years agomajor overhaul of mod_include's filter parser. Note that the new code
André Malo [Wed, 20 Aug 2003 16:27:18 +0000 (16:27 +0000)]
major overhaul of mod_include's filter parser. Note that the new code
contains a thin wrapper to ensure binary compatibility. (needed for
2.0 backport).

This is a two-tiered commit for better diffs. This one inserts the new
code (old code #if'd out).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101036 13f79535-47bb-0310-9956-ffa450edef68

21 years agostyle
André Malo [Wed, 20 Aug 2003 01:11:11 +0000 (01:11 +0000)]
style

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101029 13f79535-47bb-0310-9956-ffa450edef68

21 years agoallow [T=...] forced types to get expanded.
André Malo [Wed, 20 Aug 2003 00:35:48 +0000 (00:35 +0000)]
allow [T=...] forced types to get expanded.

PR: 14223

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101028 13f79535-47bb-0310-9956-ffa450edef68

21 years agocleanup apply_rewrite_rule function.
André Malo [Tue, 19 Aug 2003 22:37:38 +0000 (22:37 +0000)]
cleanup apply_rewrite_rule function.
Improve readablity (? ;-) and efficiency.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101027 13f79535-47bb-0310-9956-ffa450edef68

21 years agorename the exp_ctx to rewrite_ctx and widen its scope. That makes
André Malo [Tue, 19 Aug 2003 20:11:32 +0000 (20:11 +0000)]
rename the exp_ctx to rewrite_ctx and widen its scope. That makes
a lot of things easier :)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101026 13f79535-47bb-0310-9956-ffa450edef68

21 years agostressing the notes table is not necessary.
André Malo [Tue, 19 Aug 2003 18:21:30 +0000 (18:21 +0000)]
stressing the notes table is not necessary.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101025 13f79535-47bb-0310-9956-ffa450edef68

21 years agofix %b format to write really "-" if bytes_sent == 0.
André Malo [Tue, 19 Aug 2003 16:03:03 +0000 (16:03 +0000)]
fix %b format to write really "-" if bytes_sent == 0.

Submitted by: Kess

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101021 13f79535-47bb-0310-9956-ffa450edef68

21 years agohere applies the same. Don't skip the \0 delimiter when searching
André Malo [Tue, 19 Aug 2003 14:56:12 +0000 (14:56 +0000)]
here applies the same. Don't skip the \0 delimiter when searching
for already applied encodings. Additionally don't compress if *any*
non-identity encoding was applied before. (deflate, pkzip, whatever).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101019 13f79535-47bb-0310-9956-ffa450edef68

21 years agoDoh. If Accept-Encoding contains no gzip token, we skip the 0 delimiter
André Malo [Tue, 19 Aug 2003 12:26:38 +0000 (12:26 +0000)]
Doh. If Accept-Encoding contains no gzip token, we skip the 0 delimiter
and search for "gzip" somehwere in the memory. This was originally discovered
by Joe Orton. But there's more. We must skip any parameters, since these
do not contain what we're looking for.

PR: 21523

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101015 13f79535-47bb-0310-9956-ffa450edef68

21 years agofix misleading ap_get_token description
André Malo [Tue, 19 Aug 2003 12:00:13 +0000 (12:00 +0000)]
fix misleading ap_get_token description

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101014 13f79535-47bb-0310-9956-ffa450edef68

21 years agoCatch an edge case, where strange subsequent RewriteRules
André Malo [Tue, 19 Aug 2003 00:52:43 +0000 (00:52 +0000)]
Catch an edge case, where strange subsequent RewriteRules
could lead to a 400 (Bad Request) response. Example:

<Directory /path>
    RewriteEngine on
    RewriteBase /
    RewriteRule foo /bar
    RewriteRule bar baz
</Directory>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101012 13f79535-47bb-0310-9956-ffa450edef68

21 years agoFix LA-U and LA-F lookups in directory context. Previously
André Malo [Tue, 19 Aug 2003 00:36:58 +0000 (00:36 +0000)]
Fix LA-U and LA-F lookups in directory context. Previously
the current rewrite state was just used as lookup path, which lead to
strange and often useless results.

Related to PR 8493.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101011 13f79535-47bb-0310-9956-ffa450edef68

21 years agodoh. the permission thing is independent from rewrite log
André Malo [Mon, 18 Aug 2003 21:57:45 +0000 (21:57 +0000)]
doh. the permission thing is independent from rewrite log

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101010 13f79535-47bb-0310-9956-ffa450edef68

21 years agouse a context structure to hold expansion information. This makes some
André Malo [Mon, 18 Aug 2003 21:52:22 +0000 (21:52 +0000)]
use a context structure to hold expansion information. This makes some
things easier (in future commits :-)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101009 13f79535-47bb-0310-9956-ffa450edef68

21 years agoAdd extension for XUL (PR#20558).
Erik Abele [Sun, 17 Aug 2003 14:36:55 +0000 (14:36 +0000)]
Add extension for XUL (PR#20558).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101001 13f79535-47bb-0310-9956-ffa450edef68

21 years agoChange Listen directive to bind to all addresses returned by
Justin Erenkrantz [Fri, 15 Aug 2003 02:25:41 +0000 (02:25 +0000)]
Change Listen directive to bind to all addresses returned by
apr_sockaddr_info_get when a hostname is not specified.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100999 13f79535-47bb-0310-9956-ffa450edef68

21 years agoMore fun with IPv6 Listen statements.
Justin Erenkrantz [Thu, 14 Aug 2003 00:05:26 +0000 (00:05 +0000)]
More fun with IPv6 Listen statements.

- Remove the default_family declaration as it is no longer used.
- Fix segfault if checking NULL sa->hostname.
- Cycle through the bind_addr list if we get an error creating an IPv6 socket
  and we're IPv6 enabled and the binding address is NULL.  The odds are that
  we just can't support IPv6.  (The twist is that apr_sockaddr_info_get should
  return bind_addr's for IPv6 and IPv4.  This strikes me as slightly more
  elegant than the find_default_family hack.)

This should get us working on Linux and Netware again.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100994 13f79535-47bb-0310-9956-ffa450edef68

21 years agosigh.
Cliff Woolley [Wed, 13 Aug 2003 21:01:41 +0000 (21:01 +0000)]
sigh.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100982 13f79535-47bb-0310-9956-ffa450edef68

21 years agospelling fix
Stas Bekman [Wed, 13 Aug 2003 20:50:04 +0000 (20:50 +0000)]
spelling fix
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100980 13f79535-47bb-0310-9956-ffa450edef68

21 years agoCorrect failure with Listen directives on machines with IPv6 enabled by
Justin Erenkrantz [Wed, 13 Aug 2003 19:17:45 +0000 (19:17 +0000)]
Correct failure with Listen directives on machines with IPv6 enabled by
removing find_default_family() and letting APR determine what should be done
without a hostname.

This patch requires the corollary APR patch to properly call getaddrinfo().

(Justin modified Colm's patch to always walk the old listeners even when
we have an address.  That part of the patch wasn't really relevant.)

Submitted by: Colm MacC�rthaigh <colm@stdlib.net>
Reviewed by: Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100978 13f79535-47bb-0310-9956-ffa450edef68

21 years agoforgot this.
Cliff Woolley [Tue, 12 Aug 2003 21:02:00 +0000 (21:02 +0000)]
forgot this.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100971 13f79535-47bb-0310-9956-ffa450edef68

21 years agoMake mod_ssl consistent with itself when you have a halfass install of
Cliff Woolley [Tue, 12 Aug 2003 20:58:53 +0000 (20:58 +0000)]
Make mod_ssl consistent with itself when you have a halfass install of
openssl-engine (ie, you're missing the headers).  ssl_cmd_SSLCryptoDevice()
is thrown away by the preprocessor if you're missing the header, so the
call to it should have the same condition applied.  otherwise, mod_ssl
will fail to link.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100970 13f79535-47bb-0310-9956-ffa450edef68

21 years ago Fix bug in mod_deflate, which was passing calling deflate()
Stas Bekman [Tue, 12 Aug 2003 17:46:29 +0000 (17:46 +0000)]
 Fix bug in mod_deflate, which was passing calling deflate()
     without checkinig first whether it has something to deflate. (currently
     this causes deflate to generate a fatal error according to the zlib spec).
     PR 22259.
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100966 13f79535-47bb-0310-9956-ffa450edef68

21 years agoTypo
Martin Kraemer [Mon, 11 Aug 2003 08:03:41 +0000 (08:03 +0000)]
Typo

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100959 13f79535-47bb-0310-9956-ffa450edef68

21 years agofix some declarations so dump_bucket and dump_brigade will work in gdb-5.3
Brian Pane [Sat, 9 Aug 2003 20:28:07 +0000 (20:28 +0000)]
fix some declarations so dump_bucket and dump_brigade will work in gdb-5.3

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100957 13f79535-47bb-0310-9956-ffa450edef68

21 years agoUpdate transformations.
Erik Abele [Sat, 9 Aug 2003 14:52:57 +0000 (14:52 +0000)]
Update transformations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100955 13f79535-47bb-0310-9956-ffa450edef68

21 years agoRemoved index.html.fr at request of Vincent Deffontaines <vincent@gryzor.com>.
Erik Abele [Fri, 8 Aug 2003 23:01:46 +0000 (23:01 +0000)]
Removed index.html.fr at request of Vincent Deffontaines <vincent@gryzor.com>.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100949 13f79535-47bb-0310-9956-ffa450edef68

21 years agoTrivial change to reporting an error when an identity spoof is
Sander Striker [Fri, 8 Aug 2003 09:34:20 +0000 (09:34 +0000)]
Trivial change to reporting an error when an identity spoof is
encountered with respect to FakeBasicAuth.

Submitted by: Greg Stein

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100941 13f79535-47bb-0310-9956-ffa450edef68

21 years agoAdd an error msg when encountering a spoofed identity. If this would
Sander Striker [Thu, 7 Aug 2003 23:57:11 +0000 (23:57 +0000)]
Add an error msg when encountering a spoofed identity.  If this would
have been here in the first place.  Makes issues like these be found
easier in the future.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100937 13f79535-47bb-0310-9956-ffa450edef68

21 years agosplit ap_process_resource_config into two functions (since we don't wanna
André Malo [Thu, 7 Aug 2003 16:38:19 +0000 (16:38 +0000)]
split ap_process_resource_config into two functions (since we don't wanna
change the api). Only the first one (the ap_ entry point) now checks
for fnmatch and the second one will be called for every file/directory
included.
This, however, avoids infinite recursions, if a filename contains
wildcard characters.

PR: 22194

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100931 13f79535-47bb-0310-9956-ffa450edef68

21 years agofix extern "C" declaration
André Malo [Thu, 7 Aug 2003 14:13:11 +0000 (14:13 +0000)]
fix extern "C" declaration

PR: 22203
Submitted by: Arno Bakker <arno@cs.vu.nl>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100928 13f79535-47bb-0310-9956-ffa450edef68

21 years agoFix FakeBasicAuth for subrequests. This was reported via issue
Sander Striker [Thu, 7 Aug 2003 01:53:11 +0000 (01:53 +0000)]
Fix FakeBasicAuth for subrequests.  This was reported via issue
#1364 in Subversion:

  http://subversion.tigris.org/issues/show_bug.cgi?id=1364

The fix is to make mod_ssl's check_user_id hook stop tripping
over it's own checks in case of a subrequest.  That is, it
should DECLINE in case of a subrequest.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100926 13f79535-47bb-0310-9956-ffa450edef68

21 years agodrop the test, whether apr_brigade_create returns NULL. It does never
André Malo [Wed, 6 Aug 2003 21:38:58 +0000 (21:38 +0000)]
drop the test, whether apr_brigade_create returns NULL. It does never
(dumps core instead :-)

Submitted by: Cliff Woolley

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100924 13f79535-47bb-0310-9956-ffa450edef68