]> granicus.if.org Git - apache/commitdiff
let mod_speling use the current AcceptPathInfo setting.
authorAndré Malo <nd@apache.org>
Sat, 12 Jul 2003 16:38:25 +0000 (16:38 +0000)
committerAndré Malo <nd@apache.org>
Sat, 12 Jul 2003 16:38:25 +0000 (16:38 +0000)
Default is: reject

PR: 21059

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

CHANGES
modules/mappers/mod_speling.c

diff --git a/CHANGES b/CHANGES
index 4c5ca6cc4e954afe9d247694782c8dafb9484317..882012c03eea6a41ddb72a318e3e1283a94b6aef 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,10 @@ Changes with Apache 2.1.0-dev
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) mod_speling: Recognize AcceptPathInfo setting for the particular
+     location. Default is to reject path information. PR 21059.
+     [André Malo]
+
   *) Update the header token parsing code to allow LWS between the
      token word and the ':' seperator.  [PR 16520]
      [submitted: Kris Verbeeck <kris.verbeeck@advalvas.be> and
index 09cd1944a377c1575d510367b4d83bfcad316909..a64f45fa3898e20ab0ff520be84168c9f24a4f98 100644 (file)
@@ -264,6 +264,12 @@ static int check_speling(request_rec *r)
         return DECLINED;
     }
 
+    /* we default to reject path info (same as core handler) */
+    if ((r->used_path_info != AP_REQ_ACCEPT_PATH_INFO) &&
+        r->path_info && *r->path_info) {
+        return DECLINED;
+    }
+
     /*
      * The request should end up looking like this:
      * r->uri: /correct-url/mispelling/more