diff options
-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 |