httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52689] qsa flag information in mod rewrite documentation is incorrect
Date Fri, 02 Mar 2012 12:46:49 GMT

--- Comment #1 from Rich Bowen <> 2012-03-02 12:46:49 UTC ---
I almost closed this ticket with "no, you're wrong", and left it at that. It
seems obvious to me what *should* happen - that what is specified in the
rewriterule should override what was in the requested URL. I have some notion
that that's the more secure thing to do.

However, I tested this, and of course you're right.

    RewriteRule ^/test.php /test.php?one=three [QSA,L,PT]

results in:

   _SERVER["QUERY_STRING"]    one=three&one=one
   _SERVER["REQUEST_URI"]    /test.php?one=one

which in turn results in

   _REQUEST["one"]    one
   _GET["one"]    one

So, I'll correct the docs accordingly, but this raises the question of whether
this is the intended behavior. Or perhaps we need Yet Another Flag, QSP, Query
String Prepend.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message