https://bz.apache.org/bugzilla/show_bug.cgi?id=66672
Bug ID: 66672
Summary: RewriteRule with QSA flag and substitution ending with
? broken
Product: Apache httpd-2
Version: 2.4.57
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 38592
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38592&action=edit
fix RewriteRule with QSA flag and substitution ending with ?
after update from 2.4.55 to 2.4.57 we experience a change in behavior in our
regression tests: RewriteRules having the [QSA] flag set and the substitution
string ends with a question mark '?' (e.g 'RewriteRule "/do.php" "/it.php?"
[QSA]') do not append the query from the original URL anymore.
With 2.4.55 a query from the original request URL was appended to the resulting
URL. Now with 2.4.57 the query is always empty.
If the substitution includes a parameter (e.g "/it.php?a=1") [QSA] flag works
as expected.
I would argue, a substitution with a '?' at the end represents an 'empty'
query, where with the [QSA] flag set, the query from the original request must
be appended to.
The change was most probably introduced by this commit
https://svn.apache.org/viewvc?view=revision&revision=1908097.
I`ve written a small patch (attached) to revert the old behavior if the [QSA]
flag is set. This maybe to primitive but would fix our regression tests.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]