From: Christophe Jaillet
Date: Mon, 22 Oct 2018 20:45:11 +0000 (+0000)
Subject: Retsore 2.4.x default behavior modified in r1557580.
X-Git-Tag: 2.5.0-alpha2-ci-test-only~2262
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea3db733339f0848d2e185b4c990a7951774fd0f;p=thirdparty%2Fapache%2Fhttpd.git
Retsore 2.4.x default behavior modified in r1557580.
Update doc accordingly.
Slightly tweak mod_speling doc
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1844598 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_speling.xml b/docs/manual/mod/mod_speling.xml
index 5e53a2b8649..54f9d7684c1 100644
--- a/docs/manual/mod/mod_speling.xml
+++ b/docs/manual/mod/mod_speling.xml
@@ -44,21 +44,23 @@ misspellings.
up to one misspelling (character insertion /
omission / transposition or wrong character). A list is built
with all document names which were matched using this
- strategy.
+ strategy. Erroneous extension can also be fixed
+ by this module.
If, after scanning the directory,
- no matching document was found, Apache will proceed as
- usual and return a "document not found" error.
+ usual and return an error (404 - document not found).
- only one document is found that "almost" matches the
request, then it is returned in the form of a redirection
- response.
+ response (301 - Moved Permanently).
- more than one document with a close match was found, then
the list of the matches is returned to the client, and the
- client can select the correct candidate.
+ client can select the correct candidate (300 - Multiple
+ Choices).
@@ -103,7 +105,7 @@ module
- mod_speling should not be enabled in DAV
+
mod_speling should not be enabled in DAV
enabled directories, because it will try to "spell fix" newly created
resource names against existing filenames, e.g., when trying to upload
a new document doc43.html it might redirect to an existing
@@ -128,7 +130,7 @@ module
When set, this directive limits the action of the spelling correction
to lower/upper case changes. Other potential corrections are not performed,
- except when CheckBasenameMatch is also set.
+ except when CheckBasenameMatch is also set.
@@ -136,7 +138,7 @@ module
CheckBasenameMatch
Also match files with differing file name extensions.
CheckBasenameMatch on|off
-CheckBasenameMatch Off
+CheckBasenameMatch On
server config
virtual host
diff --git a/modules/mappers/mod_speling.c b/modules/mappers/mod_speling.c
index b0f4b8fe0ee..35d33ea03d5 100644
--- a/modules/mappers/mod_speling.c
+++ b/modules/mappers/mod_speling.c
@@ -76,7 +76,7 @@ static void *mkconfig(apr_pool_t *p)
cfg->enabled = 0;
cfg->check_case_only = 0;
- cfg->check_basename_match = 0;
+ cfg->check_basename_match = 1;
return cfg;
}