summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2023-04-11 21:37:10 +0000
committerEric Covener <covener@apache.org>2023-04-11 21:37:10 +0000
commit9ba59878f4e8727e2b257108585260a6e0b6ba45 (patch)
tree457dd14cf1af1c95df3b7f8ac15a1610ad197c5e
parent87e2658c1c2441db68b827761c575a617532c85e (diff)
downloadhttpd-9ba59878f4e8727e2b257108585260a6e0b6ba45.tar.gz
xforms
[skip ci] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909074 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/manual/mod/mod_rewrite.html.en.utf89
-rw-r--r--docs/manual/rewrite/flags.html.en.utf84
2 files changed, 11 insertions, 2 deletions
diff --git a/docs/manual/mod/mod_rewrite.html.en.utf8 b/docs/manual/mod/mod_rewrite.html.en.utf8
index 4ae6a2633b..44707f8cae 100644
--- a/docs/manual/mod/mod_rewrite.html.en.utf8
+++ b/docs/manual/mod/mod_rewrite.html.en.utf8
@@ -364,7 +364,11 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3"
<dd>The path component of the requested URI,
such as "/index.html". This notably excludes the
query string which is available as its own variable
- named <code>QUERY_STRING</code>.</dd>
+ named <code>QUERY_STRING</code>. The value returned for
+ both <code>REQUEST_URI</code> and <code>QUERY_STRING</code>
+ has already been %-decoded, to re-encoded it pass it through
+ the "escape" <a href="#mapfunc">mapping-function</a>.
+ </dd>
<dt><code>THE_REQUEST</code></dt>
@@ -1312,7 +1316,8 @@ cannot use <code>$N</code> in the substitution string!
<tr>
<td>B</td>
<td>Escape non-alphanumeric characters in backreferences <em>before</em>
- applying the transformation. <em><a href="../rewrite/flags.html#flag_b">details ...</a></em></td>
+ applying the transformation. For similar escaping of server-variables, see
+ the "escape" <a href="#mapfunc">mapping-function</a>.<em><a href="../rewrite/flags.html#flag_b">details ...</a></em></td>
</tr>
<tr class="odd">
<td>BCTLS</td>
diff --git a/docs/manual/rewrite/flags.html.en.utf8 b/docs/manual/rewrite/flags.html.en.utf8
index b6deba0bcd..c0b8ccb9e9 100644
--- a/docs/manual/rewrite/flags.html.en.utf8
+++ b/docs/manual/rewrite/flags.html.en.utf8
@@ -93,6 +93,10 @@ so backreferences are unescaped at the time they are applied.
Using the B flag, non-alphanumeric characters in backreferences
will be escaped. For example, consider the rule:</p>
+<p>For similar escaping of server-variables, see
+ the "escape" <a href="#mapfunc">mapping-function</a></p>
+
+
<pre class="prettyprint lang-config">RewriteRule "^search/(.*)$" "/search.php?term=$1"</pre>