summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-26 11:24:41 +0100
committerTheTroll <trolldev@gmail.com>2010-02-26 11:24:41 +0100
commit2f8ec339c3da375c386f7190462a4eee8e41926a (patch)
treea19b5a40cfbc4863833ce220e4833de267b87710
parentbc4cce1a5e35af5310635b5bd56da1896b608a5d (diff)
downloadistreamdev-2f8ec339c3da375c386f7190462a4eee8e41926a.tar.gz
istreamdev-2f8ec339c3da375c386f7190462a4eee8e41926a.tar.bz2
Fixed " " in the command printf
-rwxr-xr-xincludes/include.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/include.php b/includes/include.php
index e522295..8045ab1 100755
--- a/includes/include.php
+++ b/includes/include.php
@@ -102,13 +102,13 @@ function start_stream($type, $name, $title, $desc, $qname, $qparams, $category,
switch ($type)
{
case 1:
- $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh \"" .$url ."\" " .$qparams ." " .$httppath ." 2 " .$ffmpegpath ." " .$segmenterpath ." \" | at now";
+ $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh \\\"" .$url ."\\\" " .$qparams ." " .$httppath ." 2 " .$ffmpegpath ." " .$segmenterpath ." \" | at now";
break;
case 2:
$cmd = "export SHELL=\"/bin/sh\";printf \"cat \\\"" .$url ."\\\"/0* | ./istream.sh - " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." " .$segmenterpath ." \" | at now";
break;
case 3:
- $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh \"" .$url ."\" " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." " .$segmenterpath ." \" | at now";
+ $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh \\\"" .$url ."\\\" " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." " .$segmenterpath ." \" | at now";
break;
default:
$cmd = "";