Checkout Tools
  • last updated 1 hour ago
Constraints: committers
Constraints: files
Constraints: dates

Changeset 1642484 is being indexed.

Remove some instances where a RewriteBase must be specified

Previously, any time you used a relative substitution in

per-directory/htaccess context, you needed to specify

a RewriteBase. But in case where the context document root

and context prefix are known via e.g. mod_userdir

or mod_alias, and the substitution is under the context

document root, we can determine the replacement automatically.

This makes htaccess files or config snippets a bit more


  1. … 2 more files in changeset.
Concat string at compile time when possible.

Doing so, sometimes also give the opportunity to turn a 'ap_fputstrs' into a 'ap_fputs'.

PR 53741

  1. … 4 more files in changeset.
Silent some cppcheck warnings.
  1. … 3 more files in changeset.
the fixup hook should log (what is expected to be) local

path just like the translate name hook, for a small hint

when debugging 400 errors set just below

stop setting context info for AliasMatch. These concepts do not really map

well/reliably to AliasMatch.

  1. … 1 more file in changeset.
strncmp(r->filename, "proxy:", 6) is faster than a

note. Plus, allows for checking even if not due to


  1. … 2 more files in changeset.
add BNP flag to give control to the user on whether a space ' ' in

an escaped backrefernece is decoded to a + (default) or %20. Useful

if your backreference isn't going into the query string.

  1. … 3 more files in changeset.
allow users to workaround the over-agressive backreference

escaping by selecting the characters to escape.

  1. … 1 more file in changeset.
Fix segfault in mod_alias introduced in r1132494.

AliasMatch does not append unmatched parts of the

original URI to the new URI. So no need to subtract

anything from the new URI length.

The existing code crashed when using

"AliasMatch / /some/thing" and sending a request

with a long URI.

normalize an ugly construct which somehow manages to return the correct value
*) mod_rewrite: Add RewriteOptions InheritDown, InheritDownBefore,

and IgnoreInherit to allow RewriteRules to be pushed from parent scopes

to child scopes without explicitly configuring each child scope.


Submitted By: Edward Lu

Committed By: covener

  1. … 2 more files in changeset.
Add %{CONN_REMOTE_ADDR} to mod_rewrite. PR56094

Submitted By: Edward Lu <Chaosed0 gmail com>

Committed By: covener

  1. … 2 more files in changeset.
Skip DirectoryIndex execution unless method is GET or POST, restoring

2.2 behavior when using mod_dav. PR 54914.

Otherwise, variable behavior results: if no DirectoryIndex file is found,

mod_dav's r->handler runs as expected. But if an index file is found,

r->handler will be changed by ap_internal_fast_redirect() to something

other than mod_dav's r->handler, while r->method is left unchanged,

usually leading to a 405 response.

  1. … 1 more file in changeset.
make mod_rewrite and mod_proxy UDS work together...
  1. … 4 more files in changeset.
no make depend in sandbox, fix bld break from r1559394

followups to r1557641 suggested by nd -- add

prefix to both the macro and the handler name


  1. … 2 more files in changeset.
don't search for directory indexes/directoryslashes if a URL is in the

middle of being rewritten [in per-dir context]. PR53929

  1. … 2 more files in changeset.

under a configurable option: don't run mod_dir if r->handler is already set.


  1. … 2 more files in changeset.
mod_dir: rename the on/off/unset enum so it doesn't look so funny if

used by other flags.

- Rename variable

- Remove #define WANT_BASENAME_MATCH and define a new option 'CheckBasenameMatch' to control this behaviour

- Remove outdated comments

  1. … 1 more file in changeset.
avoid a tight busy loop with memory allocations when the [N] flag

isn't making progress.

If backported, probably increase the hard-coded limit to 32k from 10k.

  1. … 3 more files in changeset.
'ap_getword_conf' can not return NULL
Fix missing spaces in messages
  1. … 3 more files in changeset.
*) mod_rewrite: Make rewrite websocket aware to allow proxying.

PR 55598. [Chris Harris <chris.harris kitware com>]

  1. … 1 more file in changeset.
Correct the behaviour of CheckCaseOnly in mod_speling, according to the doc.

PR 44221 [Rainer Perske <perske uni-muenster de>]

include util_charset.h in ebcdic builds

Remove useless tests.


if (*x && apr_isspace(*x))


if (apr_isspace(*x))

  1. … 7 more files in changeset.
Unbreak default case of RewriteBase not being set after r1410681

Contributed By: Evgeny Barsukov

Reviewed By: covener

  1. … 1 more file in changeset.
fix r1416889 a different way -- the referer should be const too.

const fixes for mod_imagemap, fatal on old xlc due to returning apr_table_get result

from non const function.