httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52689] qsa flag information in mod rewrite documentation is incorrect
Date Fri, 02 Mar 2012 12:46:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52689

--- Comment #1 from Rich Bowen <rbowen@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


Mime
View raw message