[mythtv] mythweb patch to fix added slashes in recorded_programs.php
Michael Anthon
michael at anthon.net
Wed Oct 15 22:08:21 EDT 2003
Here's a quick patch to fix a problem in recorded_programs.php when
magic_quotes_gpc is enabled and the title contains an apostrophe (or any
other character that gets escaped).
Cheers,
Michael
diff -u -r1.13 recorded_programs.php
--- recorded_programs.php 23 Aug 2003 03:03:25 -0000 1.13
+++ recorded_programs.php 15 Oct 2003 11:02:55 -0000
@@ -1,4 +1,4 @@
-<?
+<?php
/***
***\
recorded_programs.php Last Updated: 2003.08.22
(irish)
@@ -29,6 +29,7 @@
// Queries for a specific program title
isset($_GET['title']) or $_GET['title'] = $_POST['title'];
isset($_GET['title']) or $_GET['title'] =
$_SESSION['recorded_title'];
+ if (get_magic_quotes_gpc()) $_GET['title'] =
stripslashes($_GET['title']);
// Parse the program list
$recordings = get_backend_rows('QUERY_RECORDINGS Delete');
More information about the mythtv-dev
mailing list