]> granicus.if.org Git - apache/commitdiff
PR#40831: empty-valued keys behave like missing keys in a RewriteMap lookup.
authorEric Covener <covener@apache.org>
Thu, 4 Nov 2010 23:10:45 +0000 (23:10 +0000)
committerEric Covener <covener@apache.org>
Thu, 4 Nov 2010 23:10:45 +0000 (23:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1031338 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.html.en
docs/manual/mod/mod_rewrite.xml

index 21eadbdce8231a72a74767c02cac4115d7326562..feea5d217fb37c148681bc104fb498b1a7786cdd 100644 (file)
@@ -727,7 +727,9 @@ Apache HTTP Server 2.0.41 and later</td></tr>
       key is found, the map-function construct is substituted by
       <em>SubstValue</em>. If the key is not found then it is
       substituted by <em>DefaultValue</em> or by the empty string
-      if no <em>DefaultValue</em> was specified.</p>
+      if no <em>DefaultValue</em> 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.</p>
 
       <p>For example, you might define a
       <code class="directive">RewriteMap</code> as:</p>
index 39873be967b1d94cada0a77eae9c0eef8d2801e9..6afbf5571d0cebbe35fe1005f8b72b226155f682 100644 (file)
@@ -203,7 +203,9 @@ Apache HTTP Server 2.0.41 and later</compatibility>
       key is found, the map-function construct is substituted by
       <em>SubstValue</em>. If the key is not found then it is
       substituted by <em>DefaultValue</em> or by the empty string
-      if no <em>DefaultValue</em> was specified.</p>
+      if no <em>DefaultValue</em> 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.</p>
 
       <p>For example, you might define a
       <directive>RewriteMap</directive> as:</p>