www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cliff Woolley" <jwool...@wlu.edu>
Subject Re: mod_rewrite/4766: RewriteRule behaves unexpectedly when URL contains an ampersand
Date Mon, 22 Nov 1999 20:40:01 GMT
The following reply was made to PR mod_rewrite/4766; it has been noted by GNATS.

From: "Cliff Woolley" <jwoolley@wlu.edu>
To: <apbugs@Apache.Org>, <rse@Apache.Org>
Cc:  Subject: Re: mod_rewrite/4766: RewriteRule behaves unexpectedly when
	URL contains an ampersand
Date: Mon, 22 Nov 1999 15:37:11 -0500

 >Fixed for Apache 1.3.10.
 >Thanks for your feedback.
 
 Ralf:
 
   Thanks for the patch... but I think I've found a problem with it (I'm
 using mod_rewrite.c version 1.150 from the CVS tree).  Given the
 following rule:
 
 RewriteRule   ^(.*)\.whtml$       $1.wlu
 [T=text/x-server-parsed-html,PT]
 
 and given the URI "/error/missing.whtml", I'd expect the rule to
 rewrite the URI into "/error/missing.wlu".  Instead, it gets rewritten
 into ".wlu" (the $1 is not dereferenced... it's just deleted entirely). 
 Here are the relevant parts of the relevant lines from the rewrite
 engine log:
 
 ...initial] (2) init rewrite engine with requested uri
 /error/missing.whtml
 ...initial] (3) applying pattern '^(.*)\.whtml$' to uri
 '/error/missing.whtml'
 ...initial] (2) rewrite /error/missing.whtml -> .wlu
 ...initial] (2) remember .wlu to have MIME-type
 'text/x-server-parsed-html'
 ...initial] (2) forcing '.wlu' to get passed through to next API
 URI-to-filename handler
 
 
 Note the third line in particular.  Thanks...
 
 --Cliff
 
 Cliff Woolley
 Central Systems Software Administrator
 Washington and Lee University
 http://www.wlu.edu/~jwoolley/
 
 Work: (540) 463-8089
 Pager: (540) 462-2303

Mime
View raw message