From: Eric Covener Date: Thu, 4 Nov 2010 23:13:09 +0000 (+0000) Subject: Merge r1031338 from trunk: X-Git-Tag: 2.2.18~322 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983231ab00fbed401d1481833f026cf4991e44a7;p=thirdparty%2Fapache%2Fhttpd.git Merge r1031338 from trunk: PR#40831: empty-valued keys behave like missing keys in a RewriteMap lookup. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1031340 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 8488239c648..fea0e3866ca 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -843,7 +843,9 @@ Apache 2.0.41 and later key is found, the map-function construct is substituted by SubstValue. If the key is not found then it is substituted by DefaultValue or by the empty string - if no DefaultValue was specified.

+ if no DefaultValue was specified. Empty values + behave as if the key was absent, therefore it is not possible + to distinguish between empty-valued keys and absent keys.

For example, you might define a RewriteMap as:

diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 0c19004b32e..caee7fbbc75 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -341,7 +341,9 @@ Apache 2.0.41 and later key is found, the map-function construct is substituted by SubstValue. If the key is not found then it is substituted by DefaultValue or by the empty string - if no DefaultValue was specified.

+ if no DefaultValue was specified. Empty values + behave as if the key was absent, therefore it is not possible + to distinguish between empty-valued keys and absent keys.

For example, you might define a RewriteMap as: