https://bz.apache.org/bugzilla/show_bug.cgi?id=59299

Eric Covener <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Eric Covener <[email protected]> ---
Does the % syntax actually clash in any meaningful way?

AIUI the only reason $ clashes is because the core of the server looks to
expand $ variables from the native environment / mod_define before directives
even get to process the arguments.

But the % usage in a macro is expanded before mod_rewrite ever takes a look at
the variables.

(99% of directives are like RewriteCond/RewriteRule. 1% are of a special type
called "EXEC_ON_READ" which basically means some evaluation is done immediately
-- those are the problematic ones because they run earlier then everything
else).

For example this works:

<Macro rewriteme %rule %subst %condvar %condval>
RewriteEngine ON
RewriteCond %{%condvar} %condval
RewriteRule %rule %subst
</Macro>


<virtualhost *:80>
Use rewriteme .* /XXX HTTP_HOST .*
</virtualhost>

Should we just prefer % and then @ if you don't like looking at %{%... in
expressions/mod_Rewrite and relegate to $ as a last resort?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to