diff options
author | Alib <aliboba@free.fr> | 2010-02-28 16:04:29 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-28 16:04:29 +0100 |
commit | 3bacf5b55fa8fd2135f4811683cb4c20c1d3cb0d (patch) | |
tree | 78985dc4c161295658f34cdf0171e97b3d34cf2c | |
parent | 5f5250a9b693ea62075e9677b0efe53b6c4bc013 (diff) | |
download | istreamdev-3bacf5b55fa8fd2135f4811683cb4c20c1d3cb0d.tar.gz istreamdev-3bacf5b55fa8fd2135f4811683cb4c20c1d3cb0d.tar.bz2 |
fixed recording with '
-rwxr-xr-x | includes/inc_session.php | 3 | ||||
-rwxr-xr-x | includes/inc_stream.php | 2 | ||||
-rwxr-xr-x | includes/inc_utils.php | 2 | ||||
-rwxr-xr-x | includes/inc_vdr.php | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/includes/inc_session.php b/includes/inc_session.php index 743fcf3..9cc0a26 100755 --- a/includes/inc_session.php +++ b/includes/inc_session.php @@ -15,7 +15,7 @@ function sessioncreate($type, $name, $title, $desc, $qname, $qparams, $category, // Create session exec('mkdir ram/' .$session); - + $url = str_replace("\\'", "'", $url); switch ($type) { case 1: @@ -32,6 +32,7 @@ function sessioncreate($type, $name, $title, $desc, $qname, $qparams, $category, } $cmd = str_replace('%', '%%', $cmd); + print $cmd; exec ($cmd); // Write streaminfo diff --git a/includes/inc_stream.php b/includes/inc_stream.php index d35a37e..930c332 100755 --- a/includes/inc_stream.php +++ b/includes/inc_stream.php @@ -6,7 +6,7 @@ $category = $_SESSION['currentcat']; $type = $_REQUEST['type']; $name = $_REQUEST['name']; - +$name = stripslashes($name); switch ($type) { // Live TV diff --git a/includes/inc_utils.php b/includes/inc_utils.php index 82b57a6..e748c64 100755 --- a/includes/inc_utils.php +++ b/includes/inc_utils.php @@ -50,7 +50,7 @@ function php2js ($var) return $var; elseif (is_string($var)) - return "\"" . addslashes(stripslashes($var)) . "\""; + return "\"" .$var . "\""; else return false; diff --git a/includes/inc_vdr.php b/includes/inc_vdr.php index ac6be1d..6dee5dc 100755 --- a/includes/inc_vdr.php +++ b/includes/inc_vdr.php @@ -16,7 +16,7 @@ function vdrsendcommand($cmd) function vdrgetinfostream($stream = "NULL", $ischan = 1) { global $allepg, $allepgfilled; - + $stream=stripslashes($stream); if ($ischan) { // Fill epg if not yet done |