You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by bu...@apache.org on 2012/03/02 13:46:49 UTC

DO NOT REPLY [Bug 52689] qsa flag information in mod rewrite documentation is incorrect

https://issues.apache.org/bugzilla/show_bug.cgi?id=52689

--- Comment #1 from Rich Bowen <rb...@apache.org> 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org