www-apache-bugdb mailing list archives

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

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

 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 %{}.
 
 Tony.
 -- 
 en oeccget g mtcaa    f.a.n.finch
 v spdlkishrhtewe y    dot@dotat.at
 eatp o v eiti i d.    fanf@covalent.net

Mime
View raw message