From: <php...@li...> - 2010-08-12 18:34:35
|
On Thu, Aug 12, 2010 at 8:01 PM, < php...@li...> wrote: > > it seems to me the definition of REQUEST_URI is a grey area so don't > worry > > if our views are different. > > From > > => http://www.php.net/manual/en/reserved.variables.server.php > > 'REQUEST_URI' > The URI which was given in order to access this page; for > instance, '/index.html'. > > ... > > But from the comments below: > > danny at orionrobots dot co dot uk > 31-Jul-2008 09:25 > It is worth noting here that if you use $_SERVER['REQUEST_URI'] with a > rewrite rule, the original, not rewritten URI will be presented. > > > I have changed your ticket state back to open. > > > Thank you. If you treat Servlet forwarding as same as URL rewrite, then we should use the source. > btw, Tomcat doesn't implemenet javax.servlet.* attributes at all so the > patch won't affect it. I My previous comment was wrong. It is true only for the welcome file case. If there is an actual servlet side forward, Tomcat does implement the javax.servlet.forward.request_uri attribute. And my patch will change the behavior. To me, it is a fix. btw, sorry for the lack of proofreading of my previous email. It was sent in a rush. :-P regards, mingfai |