[mythtv] mythweb patch - Handle quotes in recordings dropdown
David Peterson
mythtv at opencraft.org
Thu Jul 24 14:53:59 EDT 2003
Hi all,
Thanks for MythTV - it's a fantastic program.
This small patch for MythWeb fixes a problem where programs with single
quotes in the title weren't being shown when selected from the "Show
Recordings" dropdown of the "Recorded Programs" section.
David.
-------------- next part --------------
Index: recorded.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/recorded.php,v
retrieving revision 1.5
diff -c -r1.5 recorded.php
*** recorded.php 16 Jul 2003 03:09:28 -0000 1.5
--- recorded.php 24 Jul 2003 03:45:22 -0000
***************
*** 97,102 ****
--- 97,103 ----
}
$total_length = 0;
+ $titlenoslash = stripslashes($_GET['title']);
foreach($recs as $t => $v)
{
if($t == 'offset')
***************
*** 111,117 ****
if ($GLOBALS['purge_stale_pixmaps'] && $stale_pixmaps)
unset($stale_pixmaps[$pixmapfn]);
! if ($_GET['title'] && $_GET['title'] != $v[0])
continue;
print "<form action=\"main.php?mode=recorded\" method=\"post\">";
--- 112,118 ----
if ($GLOBALS['purge_stale_pixmaps'] && $stale_pixmaps)
unset($stale_pixmaps[$pixmapfn]);
! if ($titlenoslash && $titlenoslash != $v[0])
continue;
print "<form action=\"main.php?mode=recorded\" method=\"post\">";
More information about the mythtv-dev
mailing list