From a7f3a9b10760c468db1ce42f407710bb3f99b217 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 1 Sep 2004 15:14:33 +0000 Subject: [PATCH] Fix the handling of URIs containing %2F when AllowEncodedSlashes is enabled. Previously, such urls would still be rejected with 404. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104925 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ server/util.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 44ea2575ad7..0d2491c8f2a 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] + *) Fix the handling of URIs containing %2F when AllowEncodedSlashes + is enabled. Previously, such urls would still be rejected with + 404. [Jeff Trawick] + *) mod_rewrite: Fix query string handling for proxied URLs. PR 14518. [michael teitler , Jan Kratochvil ] diff --git a/server/util.c b/server/util.c index 23a968ee287..24a878baeee 100644 --- a/server/util.c +++ b/server/util.c @@ -1581,7 +1581,7 @@ AP_DECLARE(int) ap_unescape_url_keep2f(char *url) else { char decoded; decoded = x2c(y + 1); - if (IS_SLASH(decoded)) { + if (!IS_SLASH(decoded)) { *x++ = *y++; *x = *y; } -- 2.47.2