www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Holmes <t...@crosswinds.net>
Subject Re: mod_rewrite/6802: Conditional Backreferences in RewriteMaps used in RewriteCond does not work
Date Tue, 07 Nov 2000 15:00:02 GMT
The following reply was made to PR mod_rewrite/6802; it has been noted by GNATS.

From: Tony Holmes <tony@crosswinds.net>
To: Tony Finch <dot@dotat.at>
Cc: apbugs@apache.org
Subject: Re: mod_rewrite/6802: Conditional Backreferences in RewriteMaps used in RewriteCond
does not work
Date: Tue, 7 Nov 2000 09:50:49 -0500

 On +Nov 07, Tony Finch wrote:
 > Tony Holmes <tony@crosswinds.net> wrote:
 > >
 > >When using a Condition backreference as a key to a dbm RewriteMap, used in a
 > >RewriteCond statement, the %<n> is not expanded correctly.
 > >
 > >This still exists with the mod_rewrite patch fix for 1.3.14
 > >
 > >Using a DBM rewrite map named foo, here is the httpd.conf lines
 > >
 > >RewriteCond %{REQUEST_FILENAME} /[~|%7E]([a-z0-9]*)/$	[NC]
 > >RewriteCond %{foo:%1}	!NO
 > >RewriteRule ^/(.*)$	/someotherurl/$1 [L]
 > >
 > >The foo map lookup fails since %1 is passed as tthe key instead of the 
 > >value of the conditional backreference
 > 
 > Er, but the syntax for a map lookup is ${map:key} not %{}.
 
 Sorry for the dup, missed the apbugs cc.
 
 That was a typo, in my copying of the test.  It should be:
 
 RewriteCond ${foo:%1}	!NO
 
 The problem does exist with proper syntax (I lacked cut'n'paste).
 
 -- 
 Tony Holmes
 
 Senior Systems Architect
 Crosswinds Internet Communications Inc.

Mime
View raw message