From 168c2b524102d9eccde8f9d61e23fc6ea7235fb2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Sat, 12 Jul 2003 16:38:25 +0000 Subject: [PATCH] let mod_speling use the current AcceptPathInfo setting. Default is: reject PR: 21059 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100566 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ modules/mappers/mod_speling.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES b/CHANGES index 4c5ca6cc4e..882012c03e 100644 --- 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 and diff --git a/modules/mappers/mod_speling.c b/modules/mappers/mod_speling.c index 09cd1944a3..a64f45fa38 100644 --- a/modules/mappers/mod_speling.c +++ b/modules/mappers/mod_speling.c @@ -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 -- 2.40.0