Ticket #502 (closed defect: fixed)
[Patch] AgaviWebRouting.class.php double slash fix for Apache 2.2
| Reported by: | ross | Owned by: | david |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | routing | Version: | 0.11.0RC4 |
| Severity: | normal | Keywords: | |
| Cc: | Patch attached: |
Description (last modified by ross) (diff)
Currently with mod_rewrite turned on if I goto: http://mysite.com/search/content//1
$_SERVER['QUERY_STRING'] converts it to: http://mysite.com/search/content/1
Which has a number of issues, it messes up routing and my baseHref!
$_SERVER['REQUEST_URI'] however does contain the original url: http://mysite.com/search/content//1
Solution: If the URL is rewritten - use the REQUEST_URI as the basis for the $qs. Automatically converting the first ? if any to & as done automatically in the Query_String.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

