From 2f8ec339c3da375c386f7190462a4eee8e41926a Mon Sep 17 00:00:00 2001 From: TheTroll Date: Fri, 26 Feb 2010 11:24:41 +0100 Subject: Fixed " " in the command printf --- includes/include.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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 = ""; -- cgit v1.2.3