httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@covalent.net>
Subject Re: Deficiency in mod_rewrite
Date Fri, 23 Mar 2001 22:22:42 GMT
From: "Rodent of Unusual Size" <Ken.Coar@Golux.Com>
Sent: Friday, March 23, 2001 3:18 PM

> > I just realised that mod_rewrite has a fairly significant
> > deficiency: since it uses '%' and '$' for its own purposes
> > in signalling substitution, there does not appear to be any
> > way to include these characters explicitly in the rewritten
> > string.
> 
> The obvious first pass solution is to introduce the special
> strings '%%' and '%$' (and '$%' and '$$') as forcing the
> second character to be a literal.  No problem.. except that
> the result of the rewrite is always passed through ap_escape_uri()
> (aka ap_os_escape_path()), which leaves the '$' alone but
> turns the '%' into '%25'.

wouldn't \% and \$ be reasonably appropriate?



Mime
View raw message