Commit 4916a47f authored by Ralf S. Engelschall's avatar Ralf S. Engelschall
Browse files

It's unbelievable, it's unbelievable...

We have three locations where one can construct a string in rewriting rules by
expanding $N, %N, %{NAME} and ${map:key}:

  - RewriteCond <Location-1>  ...
  - RewriteRule ...           <Location-2> ...
  - RewriteRule ...           ...          [..,E=NAME:<Location-3>,...]

And just after I've added exact comments of what we expand in each location, I
discovered that they are expanded totally inconsequent. For <Location-3> the
%{NAME} and ${map:key} constructs were not expanded (ok, perhaps not really a
%major drawback) and for <Location-1> the ${map:key} construct was not
%expanded while for <Location-2> all are expanded. At least the missing
${map:key} expansion for <Location-1> is horrible because this way we
unnesessarily restricted the usefulness of RewriteCond dramatically.

Perhaps I should add more source comments to mod_rewrite.c
to discover that it then can even can cook a cake now.... ;-)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@80335 13f79535-47bb-0310-9956-ffa450edef68
parent 0dba2be0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment