Opened 9 years ago

Closed 9 years ago

#9736 closed Bug Report - General (Upstream Bug)

mythweb sorting links resolving to wrong url

Reported by: ajlill@… Owned by: Rob Smith
Priority: minor Milestone: unknown
Component: Plugin - MythWeb Version: 0.24-fixes
Severity: medium Keywords:
Cc: Ticket locked: no


All of the sorting links are resolving to http://host/mythweb/mythweb.php?sortby=whatever.

I traced this to $_SERVER['PATH_INFO'] returning /mythweb/mythweb.php in include/sorting.php:get_sort_link() when it is expected to return /tv/upcoming, for example.

I fixed it by changing this to $_GET['PATH_INFO']

This worked on debian lenny, running php version 5.2.6.dfsg.1-1+lenny9 but not on debian squeeze running php version 5.3.3-7+squeeze1

also, I use fcgi instead of libapache-mod-php5, though it didn't matter in lenny.

Change History (1)

comment:1 Changed 9 years ago by Raymond Wagner

Resolution: Upstream Bug
Status: newclosed

If the server is populating PATH_INFO incorrectly, then the server is not following RFC3875 and should be fixed. For a temporary solution, try setting the proxy-fcgi-pathinfo variable to get mod_proxy_fcgi to set that value directly.

Note: See TracTickets for help on using tickets.