Modify ↓
Ticket #1562 (closed defect: fixed)
Link problem for reports with dynamic variables
| Reported by: | t.dettrick@… | Owned by: | daniel |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9 |
| Component: | report system | Version: | 0.9b2 |
| Severity: | major | Keywords: | |
| Cc: | trac-form@… |
Description
Links given as:
[report:123?MYVAR=myvalue My Report]
result in all of the links on the generated report consisting of things like:
http://...../report/123?MYVAR=myvalue/ticket/345
As of Revision 1677.
Attachments
Change History
comment:4 Changed 5 years ago by trac-form@…
I'm not sure whether this patch is correctly implemented, but it works: eg. http://trac-hacks.swapoff.org/wiki/TocMacro
comment:6 Changed 5 years ago by cmlenz
- Status changed from new to closed
- Resolution set to fixed
Applied patch in [2322]. Well, except for the part that removed the report shorthand syntax ;-)
comment:7 Changed 22 months ago by www.ticketpoint.de
There are new patches? I badly need a patch! Plz let me know. Thx
comment:8 Changed 22 months ago by ebray
Hmm...does BadContent also apply to usernames?
Note: See
TracTickets for help on using
tickets.



It appears to do this because the link:
generates the href:
instead of:
This confuses Apache into believing that the OS environment variable SCRIPT_NAME is the same as REQUEST_URI, rather than being the URL of the Trac project. Obviously the solution is to stop the GET request parameters being encoded.