]> granicus.if.org Git - apache/log
apache
20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 years agouse bucket brigades directly when reading PUT data. This avoids
André Malo [Wed, 6 Aug 2003 14:46:48 +0000 (14:46 +0000)]
use bucket brigades directly when reading PUT data. This avoids
problems with content-length-modifying input filter (like deflate).

PR: 22104
Some stuff submitted by: tim@robbins.dropbear.id.au (Tim Robbins)

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

20 years agodefault_limit_req_body constant doesn't exist.
André Malo [Wed, 6 Aug 2003 13:57:29 +0000 (13:57 +0000)]
default_limit_req_body constant doesn't exist.

Submitted by: Milan Roubal <roubm9am@barbora.ms.mff.cuni.cz>

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

20 years agothese 3 bugs were reported long time ago, but there are still there. The entries
Stas Bekman [Wed, 6 Aug 2003 04:02:34 +0000 (04:02 +0000)]
these 3 bugs were reported long time ago, but there are still there. The entries
include links to the threads where these bugs were discussed
PR:
Obtained from:
Submitted by:
Reviewed by:

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

20 years agoremove superfluous (heya Cliff) space from log string.
André Malo [Wed, 6 Aug 2003 00:15:49 +0000 (00:15 +0000)]
remove superfluous (heya Cliff) space from log string.

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

20 years agohook mimetype-forcing into fixup/LAST. This leads to consistent
André Malo [Tue, 5 Aug 2003 23:04:05 +0000 (23:04 +0000)]
hook mimetype-forcing into fixup/LAST. This leads to consistent
behaviour (server context vs. directory context), overrides all statically
configured mime types and doesn't clobber multiviews any longer.

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

20 years ago Although we initialize mc->pid in the child init phase,
William A. Rowe Jr [Tue, 5 Aug 2003 22:49:42 +0000 (22:49 +0000)]
  Although we initialize mc->pid in the child init phase,
  we haven't initialized it before initially performing
  our ssl_rand_seed() in the parent/postconfig phase.

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

20 years agoadd a comment for future editors
André Malo [Tue, 5 Aug 2003 21:18:47 +0000 (21:18 +0000)]
add a comment for future editors
no code change.

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

20 years agoThere are different kinds of people:
André Malo [Tue, 5 Aug 2003 18:45:53 +0000 (18:45 +0000)]
There are different kinds of people:

- the good      English speaking people
- the bad       English speaking people
- and the ugly  ones, who should not even try to do so

I think, I'm one of the latter group.
Thanks to Thom May :)

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

20 years agoword smithing / grammar
André Malo [Tue, 5 Aug 2003 17:44:02 +0000 (17:44 +0000)]
word smithing / grammar

Submitted by: Jeff Trawick

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

20 years agomake clear, that we *know* the RewriteLog directive, even if we
André Malo [Tue, 5 Aug 2003 12:12:21 +0000 (12:12 +0000)]
make clear, that we *know* the RewriteLog directive, even if we
don't support it. Thanks to kess for pointing this out.

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

20 years agointroduce REWRITELOG_DISABLED compiler option, which -- if supplied --
André Malo [Mon, 4 Aug 2003 23:43:39 +0000 (23:43 +0000)]
introduce REWRITELOG_DISABLED compiler option, which -- if supplied --
strips all logging code from mod_rewrite. This is meant as a performance
improvement for production sites, not as a recommended compiler option
for public distributions.

At least conceptionally this was
Reviewed by: Justin Erenkrantz, Mads Toftum, Thom May,
David Burry <dburry@tagnet.org>

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

20 years agoremove unneccessary assignment
André Malo [Mon, 4 Aug 2003 22:05:43 +0000 (22:05 +0000)]
remove unneccessary assignment

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

20 years agoimprove expansion performance.
André Malo [Mon, 4 Aug 2003 21:47:08 +0000 (21:47 +0000)]
improve expansion performance.
If we have only small expansions (like just one variable - often used
in map keys or the like), don't stress the pool with allocating
memory for the linked result pointer list. This list can be safely
stored on the stack.

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

20 years agoRemove the general not-updated warning for perf-tuning,
Joshua Slive [Mon, 4 Aug 2003 16:50:44 +0000 (16:50 +0000)]
Remove the general not-updated warning for perf-tuning,
since the document is mostly accurate.  But since the
accept-mutex section seems a little dated, leave a
warning there.  That could use some developer intervention.

Also, remove the author attribution, since large parts
of this have changed since Dean wrote it.

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

20 years agocleanup compare_lexicography function.
André Malo [Sun, 3 Aug 2003 20:15:50 +0000 (20:15 +0000)]
cleanup compare_lexicography function.
- improve readability
- make sure that unsigned chars are compared
- use apr_size_t for string lengths

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

20 years agoinline some functions for faster processing.
André Malo [Sun, 3 Aug 2003 19:50:26 +0000 (19:50 +0000)]
inline some functions for faster processing.

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

20 years agosubreq_ok *is* a macro.
André Malo [Sun, 3 Aug 2003 19:14:55 +0000 (19:14 +0000)]
subreq_ok *is* a macro.

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

20 years agocleanup the add_cookie function a bit.
André Malo [Sun, 3 Aug 2003 19:04:54 +0000 (19:04 +0000)]
cleanup the add_cookie function a bit.
- the if(s) check is superfluid. s is guaranteed to be non-NULL
  (except for out of memory)
- strtok as late as possible to save some cycles.

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

20 years agoincorporate the add_env_variable function in do_expand_env.
André Malo [Sun, 3 Aug 2003 18:38:14 +0000 (18:38 +0000)]
incorporate the add_env_variable function in do_expand_env.
I see no real reason to use an extra function call here (other than
decreasing performance :)

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

20 years agostyle
André Malo [Sun, 3 Aug 2003 17:59:55 +0000 (17:59 +0000)]
style

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

20 years agodistinguish between these two states:
Jeff Trawick [Fri, 1 Aug 2003 10:41:46 +0000 (10:41 +0000)]
distinguish between these two states:

. just issued connect(), polling for writability to find out when connect()
  completed
. already connected, waiting for data from the server so polling for
  readability

by only polling for writability during the first state, we avoid some
logic in test() which inappropriately writes multiple requests to the
server

btw, the most basic SSL test segfaulted before and after this commit

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

20 years agorestore a check for write failures which was lost for non-SSL builds
Jeff Trawick [Fri, 1 Aug 2003 08:57:43 +0000 (08:57 +0000)]
restore a check for write failures which was lost for non-SSL builds

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

20 years agosync
André Malo [Thu, 31 Jul 2003 23:50:45 +0000 (23:50 +0000)]
sync

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

20 years agoAs suggested by Marc Slemko, document the double reverse
Joshua Slive [Thu, 31 Jul 2003 18:56:40 +0000 (18:56 +0000)]
As suggested by Marc Slemko, document the double reverse
effect of Allow/Deny.

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

20 years agogcc doesn't catch the logic and throws a warning about uninitialized
André Malo [Thu, 31 Jul 2003 16:56:28 +0000 (16:56 +0000)]
gcc doesn't catch the logic and throws a warning about uninitialized
fname. Get a rid of it.

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

20 years agoupdate transformation
André Malo [Thu, 31 Jul 2003 01:41:37 +0000 (01:41 +0000)]
update transformation

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

20 years agoremove some unnecessary memory operations
André Malo [Wed, 30 Jul 2003 21:04:31 +0000 (21:04 +0000)]
remove some unnecessary memory operations

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

20 years agoremove artifical limitation of number of env and cookie flags
André Malo [Wed, 30 Jul 2003 20:55:35 +0000 (20:55 +0000)]
remove artifical limitation of number of env and cookie flags

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

20 years ago Correct the declaration of the PFN_GETEXTENSIONVERSION type,
William A. Rowe Jr [Wed, 30 Jul 2003 19:20:06 +0000 (19:20 +0000)]
  Correct the declaration of the PFN_GETEXTENSIONVERSION type,
  which gcc was rejecting (for good reasons.)

Submitted by: Eduardo Franco <eduardo.franco@pulso.com.br>

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

20 years agothis patch was reverted.
André Malo [Wed, 30 Jul 2003 17:30:20 +0000 (17:30 +0000)]
this patch was reverted.

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

20 years agocleanup RewriteCond evaluation.
André Malo [Wed, 30 Jul 2003 17:19:36 +0000 (17:19 +0000)]
cleanup RewriteCond evaluation.
- avoid unnecessary memory operations
- parse non-regex patterns at configuration time, which
- gives the ability to throw a useful warning, where [NC] is not supported
- and speeds up processing at runtime
- allow [NC] for simple comparison pattern (=)
- improve readability

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

20 years agoRewritemap improvement:
André Malo [Wed, 30 Jul 2003 13:37:36 +0000 (13:37 +0000)]
Rewritemap improvement:
- map designations are now case insensitive (txt: rNd: PRG: INt:)
- maps may be relative to serverroot, which appears to be _very_
  helpful

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

20 years agocleanup parseargline function to be more efficient and better readable.
André Malo [Wed, 30 Jul 2003 00:13:01 +0000 (00:13 +0000)]
cleanup parseargline function to be more efficient and better readable.

It's a quite strange function. I think we can drop it at all. Opinions
anywhere?

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

20 years agoNew german translation of mod_actions based on english revision 1.14
Astrid Malo [Tue, 29 Jul 2003 22:31:06 +0000 (22:31 +0000)]
New german translation of mod_actions based on english revision 1.14

Reviewed by: erikabele, nd

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

20 years agocleanup expand_tildepath function to use the pool and be more
André Malo [Tue, 29 Jul 2003 22:19:55 +0000 (22:19 +0000)]
cleanup expand_tildepath function to use the pool and be more
readable.

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

20 years agoBe more precise what type mean
Astrid Malo [Tue, 29 Jul 2003 22:18:48 +0000 (22:18 +0000)]
Be more precise what type mean

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

20 years agominor optimization: the bracket search functions just search
André Malo [Tue, 29 Jul 2003 21:37:59 +0000 (21:37 +0000)]
minor optimization: the bracket search functions just search
for curly brackets, so there's no need to supply that every
time again.

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

20 years agothis was a two-tiered commit for better diffs.
André Malo [Tue, 29 Jul 2003 21:01:37 +0000 (21:01 +0000)]
this was a two-tiered commit for better diffs.
Now bust the old function.

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

20 years agospeed up variable lookup. It's expected to be faster
André Malo [Tue, 29 Jul 2003 20:58:29 +0000 (20:58 +0000)]
speed up variable lookup. It's expected to be faster
than a hash (and the previous if-else chain, of course).
This also reverts the wrong patch, committed in r1.151

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

20 years ago Standardize on example.com names, never bogus your-server.name style
William A. Rowe Jr [Tue, 29 Jul 2003 20:17:07 +0000 (20:17 +0000)]
  Standardize on example.com names, never bogus your-server.name style
  entries.  Roy attacked this recently, but apparently there are some
  holdovers or reversions to this policy.

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

20 years agoab: Work over non-loopback on Unix again.
Jeff Trawick [Tue, 29 Jul 2003 18:25:15 +0000 (18:25 +0000)]
ab: Work over non-loopback on Unix again.

(Broken as of 2.0.47 due to dependence on an APR bug which was fixed
in 2.0.47.)

PR:   21495

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

20 years agoFixed a typo and validation error.
Erik Abele [Tue, 29 Jul 2003 17:30:04 +0000 (17:30 +0000)]
Fixed a typo and validation error.

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

20 years agoREALLY discourage people from using <Limit>.
Joshua Slive [Tue, 29 Jul 2003 15:15:29 +0000 (15:15 +0000)]
REALLY discourage people from using <Limit>.

(Because people don't necessarily know all the methods that their
server deals with, and because crummy cgi scripts may take
"post" and treat it like "POST" or other similar bad
behavior.)

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

20 years agoAdded a missing slash.
Erik Abele [Tue, 29 Jul 2003 14:47:13 +0000 (14:47 +0000)]
Added a missing slash.

PR: 21964
Obtained from:
Submitted by:
Reviewed by:

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

20 years agoI knew I would get in trouble mucking with the build system.
Joshua Slive [Tue, 29 Jul 2003 13:40:09 +0000 (13:40 +0000)]
I knew I would get in trouble mucking with the build system.
Use topbuilddir rather than topsrcdir to find config.nice.

Submitted by: Justin Erenkrantz

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

20 years agocause a lookup failure in external rewrite maps if
André Malo [Tue, 29 Jul 2003 01:14:17 +0000 (01:14 +0000)]
cause a lookup failure in external rewrite maps if
the key contains a newline.

PR: 14453
Submitted originally by: Cedric Gavage <cedric.gavage@unixtech.be>

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

20 years agominor optimizations in lookup_map_program function.
André Malo [Tue, 29 Jul 2003 00:33:13 +0000 (00:33 +0000)]
minor optimizations in lookup_map_program function.
- make it compile time configurable, how long
  a response from a rewrite map prg may be.
- avoid unnecessary memory operations

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

20 years ago- style & readability
André Malo [Mon, 28 Jul 2003 23:41:18 +0000 (23:41 +0000)]
- style & readability
- procattr_cmd_type_set was called twice. shoot one.

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

20 years agointegrate the random functions into the select_random_value_part
André Malo [Mon, 28 Jul 2003 23:06:54 +0000 (23:06 +0000)]
integrate the random functions into the select_random_value_part
function. This is the only place where they are needed. It is
not necessary to add extra cycles for function calls here.

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

20 years agocleanup fully_qualify_uri function
André Malo [Mon, 28 Jul 2003 22:48:51 +0000 (22:48 +0000)]
cleanup fully_qualify_uri function

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

20 years agocleanup splitout_queryargs function.
André Malo [Mon, 28 Jul 2003 21:59:43 +0000 (21:59 +0000)]
cleanup splitout_queryargs function.
- don't compute strlen more than one time
- use ap_strchr instead of strchr

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

20 years agocleanup rewritelog function.
André Malo [Mon, 28 Jul 2003 21:31:06 +0000 (21:31 +0000)]
cleanup rewritelog function.
- shorten the code
- improve efficiency and readability
- get a rid of fixed buffers
- use %pp format string for pointers

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

20 years agoaxe a special check for EOF+data from apr_file_gets()... apr_file_gets()
Jeff Trawick [Mon, 28 Jul 2003 20:10:42 +0000 (20:10 +0000)]
axe a special check for EOF+data from apr_file_gets()...  apr_file_gets()
doesn't return that combination of conditions any more

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

20 years agoMention the limitations of ProxyPassReverse, and reference Nick Kew's
Joshua Slive [Mon, 28 Jul 2003 15:53:19 +0000 (15:53 +0000)]
Mention the limitations of ProxyPassReverse, and reference Nick Kew's
mod_proxy_html.

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

20 years agoInstall config.nice into the build/ directory to make
Joshua Slive [Mon, 28 Jul 2003 15:35:15 +0000 (15:35 +0000)]
Install config.nice into the build/ directory to make
minor version upgrades easier.

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

20 years agoallow piped rewrite logs to be relative to serverroot
André Malo [Mon, 28 Jul 2003 15:32:27 +0000 (15:32 +0000)]
allow piped rewrite logs to be relative to serverroot

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

20 years agoexit(1) should never occur in any module. Stay away from it.
André Malo [Mon, 28 Jul 2003 14:53:32 +0000 (14:53 +0000)]
exit(1) should never occur in any module. Stay away from it.

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

20 years agoa long time ago ...
André Malo [Mon, 28 Jul 2003 14:18:45 +0000 (14:18 +0000)]
a long time ago ...
REWRITELOCK_MODE wasn't used anymore for ages. In the meantime it defined
the mode of the rewritelog (sic!) file. So fix the misnaming and
use constants for mode and open flags.

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

20 years agoAdd some documentation on upgrading from one minor version to the next.
Joshua Slive [Mon, 28 Jul 2003 14:16:00 +0000 (14:16 +0000)]
Add some documentation on upgrading from one minor version to the next.

Reviewed by: Mads Toftum, Erik Abele, Michael Schroepl

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

20 years agocleanup current_logtime function.
André Malo [Mon, 28 Jul 2003 13:02:37 +0000 (13:02 +0000)]
cleanup current_logtime function.
use sizeof where sizeof should be used.
don't compute strlen again and again (use the supplied value
from apr_strftime instead).

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

20 years agoadd the ability to change the maximum txt:map line length at
André Malo [Mon, 28 Jul 2003 12:30:42 +0000 (12:30 +0000)]
add the ability to change the maximum txt:map line length at
compile time without patching the code

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

20 years agoSync changes with backported patches.
Justin Erenkrantz [Mon, 28 Jul 2003 02:09:27 +0000 (02:09 +0000)]
Sync changes with backported patches.

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

20 years agoGet a rid of the oversized cache.
André Malo [Sun, 27 Jul 2003 22:12:49 +0000 (22:12 +0000)]
Get a rid of the oversized cache.
The new map-cache consists of a simple two-tiered apr_hash structure.
cachep->maps contains entries for each map, which point to a hash with
the actual values (map->entries).

Each map->entries hash lives in a subpool of cachep->pool.
The mtime is stored per map and if the map expires, we just clear
map->pool and create a fresh map->entries hash structure.

This removes a big chunk of code from mod_rewrite, improves readability and
even the memory footprint of the cache.

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

20 years agocleanup the select_random_value_part function.
André Malo [Sun, 27 Jul 2003 19:18:27 +0000 (19:18 +0000)]
cleanup the select_random_value_part function.
improve efficiency and readabilty.

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

20 years agoupdate transformation
André Malo [Sun, 27 Jul 2003 16:53:27 +0000 (16:53 +0000)]
update transformation

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

20 years agocleanup lookup_map_dbmfile function.
André Malo [Sun, 27 Jul 2003 14:40:52 +0000 (14:40 +0000)]
cleanup lookup_map_dbmfile function.
improve efficiency and readablity.

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

20 years agocleanup lookup_map_txtfile function.
André Malo [Sun, 27 Jul 2003 13:49:15 +0000 (13:49 +0000)]
cleanup lookup_map_txtfile function.
- improve efficiency
- make it better readable

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

20 years agoavoid unnecessary memory operations
André Malo [Sun, 27 Jul 2003 11:56:06 +0000 (11:56 +0000)]
avoid unnecessary memory operations

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

20 years agocleanup lookup_map function.
André Malo [Sun, 27 Jul 2003 00:08:21 +0000 (00:08 +0000)]
cleanup lookup_map function.
- use switch instead of if-else chain
- collapse txt/rnd code, which is essentially the same
- make it better readable at all.

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

20 years agorewritemaps are identified by name. Store 'em in a hash rather than
André Malo [Sat, 26 Jul 2003 23:04:18 +0000 (23:04 +0000)]
rewritemaps are identified by name. Store 'em in a hash rather than
an array. This is more naturally, efficient (mostly) and better
readable.
Leave deep indentations for now (better diff).

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

20 years agore-add missing headers
André Malo [Sat, 26 Jul 2003 20:47:03 +0000 (20:47 +0000)]
re-add missing headers

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

20 years agooof. Strip all non-public stuff from mod_rewrite.h and
André Malo [Sat, 26 Jul 2003 20:32:24 +0000 (20:32 +0000)]
oof. Strip all non-public stuff from mod_rewrite.h and
reorder the code in mod_rewrite.c in order to get a rid of
the forward declaration. Cleaned up the comments as well.

No real code change, but a quite big diff ...

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

20 years ago- remove to occurences of 'instead' without reference centre
Astrid Malo [Fri, 25 Jul 2003 22:46:38 +0000 (22:46 +0000)]
- remove to occurences of 'instead' without reference centre
- some markup improvement

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

20 years agoremove outdated and more confusing than helping comment.
André Malo [Fri, 25 Jul 2003 20:07:29 +0000 (20:07 +0000)]
remove outdated and more confusing than helping comment.
no code change.

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

20 years agoEnhance some bits of the suEXEC docco to be a bit more precise
Erik Abele [Fri, 25 Jul 2003 18:31:25 +0000 (18:31 +0000)]
Enhance some bits of the suEXEC docco to be a bit more precise
in regard to suEXEC's docroot handling and it's preconditions;
see PR#21873 and #21874.

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

20 years agoAdd votes
Mads Toftum [Fri, 25 Jul 2003 10:54:59 +0000 (10:54 +0000)]
Add votes

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

20 years agoavoid unnecessary memory operation
André Malo [Thu, 24 Jul 2003 23:25:31 +0000 (23:25 +0000)]
avoid unnecessary memory operation

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

20 years agoremove more unnecessary strlen() operations
André Malo [Thu, 24 Jul 2003 23:10:29 +0000 (23:10 +0000)]
remove more unnecessary strlen() operations

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

20 years agoremove another fixed buffer from the stack
André Malo [Thu, 24 Jul 2003 22:48:17 +0000 (22:48 +0000)]
remove another fixed buffer from the stack

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

20 years agoindentation. no code change
André Malo [Thu, 24 Jul 2003 22:24:40 +0000 (22:24 +0000)]
indentation. no code change

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

20 years agovote and extend to do list
Astrid Malo [Thu, 24 Jul 2003 21:50:15 +0000 (21:50 +0000)]
vote and extend to do list

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

20 years agoremove useless post increment.
André Malo [Thu, 24 Jul 2003 20:50:50 +0000 (20:50 +0000)]
remove useless post increment.

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

20 years agoremove more variables from the stack and
André Malo [Thu, 24 Jul 2003 20:29:19 +0000 (20:29 +0000)]
remove more variables from the stack and
increase readability.

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