Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Docs
DO NOT REPLY [Bug 52689] qsa flag information in mod rewrite documentation is incorrect
 

Index | Next | Previous | View Flat


bugzilla at apache

Mar 2, 2012, 4:46 AM


Views: 126
Permalink
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 <rbowen [at] apache> 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 [at] httpd
For additional commands, e-mail: docs-help [at] httpd

Subject User Time
DO NOT REPLY [Bug 52689] qsa flag information in mod rewrite documentation is incorrect bugzilla at apache Mar 2, 2012, 4:46 AM
    DO NOT REPLY [Bug 52689] qsa flag information in mod rewrite documentation is incorrect bugzilla at apache Mar 2, 2012, 4:50 AM
    DO NOT REPLY [Bug 52689] qsa flag information in mod rewrite documentation is incorrect bugzilla at apache Mar 2, 2012, 4:53 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.