]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Restore functionality broken by the mod_rewrite security fix:
authorTony Finch <fanf@apache.org>
Wed, 18 Oct 2000 04:50:25 +0000 (04:50 +0000)
committerTony Finch <fanf@apache.org>
Wed, 18 Oct 2000 04:50:25 +0000 (04:50 +0000)
commitedddcdeda0f5c047f8b07178b9ffd429a18e6d07
tree7aadfce78c88d13c7d91d718f751b4189bdf309c
parent1d4c4128cf111085c25c2a3002c3c4b4456a0491
Restore functionality broken by the mod_rewrite security fix:
rewrite map lookup keys and default values are now expanded
so that the lookup can depend on the requested URI etc.

Because the new code is recursive you can now write configurations
like the following (with nested map lookups) which wasn't directly
possible before -- you had to use a RewriteCond and a %N backref
instead, as in http://www.apache.org/docs/vhosts/mass.html#xtra-conf

RewriteMap tolower int:tolower
RewriteMap host2user txt:/home/www/conf/virtusertbl
RewriteRule /(.*) /home/${host2user:${tolower:%{HTTP_HOST}}|www}/public_html

PR: 6671

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86638 13f79535-47bb-0310-9956-ffa450edef68
modules/mappers/mod_rewrite.c
modules/mappers/mod_rewrite.h