Ticket #7592: ical_link.patch

File ical_link.patch, 649 bytes (added by Nijn <info@…>, 2 years ago)

proposed patch

  • modules/tv/tmpl/default/upcoming.php

     
    445445 
    446446</table> 
    447447<?php 
    448     $ical_href = "ical{$_SERVER['REQUEST_URI']}?"; 
     448    $ical_href = 'ical/' .preg_replace('/^' . preg_replace('/([\[\\\^\.\$\|\(\)\[\]\*\+\?\{\}\,\/\-])/', '\\\$1', root) . '/', '',  $_SERVER['REQUEST_URI']) . '?'; 
    449449    if (!$_SESSION['scheduled_recordings']['disp_scheduled']) 
    450450        $ical_href .='skip_scheduled&'; 
    451451    if (!$_SESSION['scheduled_recordings']['disp_conflicts'])