Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#6466 closed patch (fixed)

RewriteBase causes MythWeb ical and rss feeds to fail

Reported by: raymond@… Owned by: Rob Smith
Priority: minor Milestone: 0.22
Component: Plugin - MythWeb Version: unknown
Severity: low Keywords:
Cc: Ticket locked: no

Description

If the RewriteBase? apache directive is used and set to '/', instead of the default '/mythweb', a str_replace to generate the hyperlinks to the ICal and RSS files functions improperly.

The default link should be

/mythweb/ical/tv/upcoming?

becomes

/ical/tv/ical/upcoming?

The patch adds a check for this particular scenario in both places.

Attachments (2)

mythweb.fixrewritebase.patch (1.5 KB) - added by raymond@… 15 years ago.
mythweb.fixrewritebase.2.patch (1.6 KB) - added by raymond@… 15 years ago.
correct patch file

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by raymond@…

Changed 15 years ago by raymond@…

correct patch file

comment:1 Changed 15 years ago by Rob Smith

Resolution: fixed
Status: newclosed

(In [21099]) Should fix all the issues with incorrect port detection for urls and streaming, also fixes #6466. Please note, using root is now no longer used in the urls, root_url or nothing is prefered, as the base href is now correctly defined

comment:2 Changed 15 years ago by eric.bosch@…

This change has broken the link references to recorded programs. Within the defines.php, I have done a temporary workaround by appending /mythweb to the $stream_url at line 105 ($stream_url .= "/mythweb/";) to fix this, as apparently root_url define is failing to pick up the RewriteBase? setting in the mythweb.conf.

comment:3 Changed 15 years ago by Rob Smith

Resolution: fixed
Status: closednew

comment:4 Changed 15 years ago by Rob Smith

Owner: changed from xris to Rob Smith
Status: newaccepted

comment:5 Changed 15 years ago by Rob Smith

Resolution: fixed
Status: acceptedclosed

(In [21786]) Fixes #6466, this fixes the flash video streaming url

Note: See TracTickets for help on using tickets.