id summary reporter owner description type status priority milestone component version severity resolution keywords cc mlocked 13610 MythWeb: Fix url encoding of sort links in column titles Nigel Jewell Stuart Auchterlonie "I've discovered a small bug in MythWeb fixes/31 that is also present in master and older branches. If I perform the following navigation on MythWeb: - Click ""Searches"" heading - Click ""Movies, 3½ Stars or more"" link - Click ""Title"" colummn heading The results returned are no longer filtered by the canned search (Movies, 3½ Stars or more) and if a lot of programs are available in the results it could blow up with: {{{Fatal error: Allowed memory size of bytes exhausted}}}. The reason for the issue is that the canned search in the sort link is not encoded correctly. The application then fails to recognise the canned search in search.php and discards it; {{{if (empty($Canned_Searches[$search_name])) ...}}}. The page {{{tv/searches}}} has the following link: {{{}}} The page {{{tv/search/canned%3AMovies%2C 3%26frac12%3B Stars or more}}} has the following link: {{{}}} it should be: {{{}}} The root cause is the use of {{{PATH_INFO}}} when building the link in {{{includes/sorting.php}}}. {{{PATH_INFO}}} has been previously decoded and is not reencoded on output. An alternative way would be to use {{{REQUEST_URI}}} as that has not been decoded. " Patch - Bug Fix closed minor needs_triage Plugin - MythWeb v31-fixes medium Trac EOL 0