From 0e5d920a64954cd415ae17f73bdabf8d1fe6cf39 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Thu, 25 Feb 2010 02:03:48 +0100 Subject: Fixed some character issues --- genplaylist.php | 2 +- includes/inc_audio.php | 10 ++++++++-- includes/include.php | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/genplaylist.php b/genplaylist.php index cd08fcc..9fa6016 100755 --- a/genplaylist.php +++ b/genplaylist.php @@ -13,7 +13,7 @@ $name = $_REQUEST['name']; exec('rm playlist/*'); - exec('ln -s ' .addcslashes(quotemeta($path), " &") .'* playlist'); + exec('ln -s ' .addcslashes(quotemeta($path), " &'") .'* playlist'); $dir_handle = @opendir($path); if (!$dir_handle) diff --git a/includes/inc_audio.php b/includes/inc_audio.php index df7e401..01c99ff 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -43,8 +43,10 @@ if ($medianame_array[0]) // Dirs if (mediagettype($mediapath .$subdir .$medianame_array[$cnt]) == 3) { + $medianame2=addslashes($medianame_array[$cnt]); + print "
  • \r\n"; - print " \r\n"; + print " \r\n"; print " {$medianame_array[$cnt]}>\r\n"; print " \r\n"; print "
  • \r\n"; @@ -59,11 +61,15 @@ if ($medianame_array[0]) $idx = 1; for ($cnt=0; $cnt < $count; $cnt++) { + $medianame2=addslashes($medianame_array[$cnt]); + $mediapath2=addslashes($mediapath); + $subdir2=addslashes($subdir); + // Audio if (mediagettype($mediapath .$subdir .$medianame_array[$cnt]) == 2) { print "
  • \r\n"; - print " \r\n"; + print " \r\n"; print " $idx{$medianame_array[$cnt]}\r\n"; print " \r\n"; print "
  • \r\n"; diff --git a/includes/include.php b/includes/include.php index f8819dd..6b57a65 100755 --- a/includes/include.php +++ b/includes/include.php @@ -98,13 +98,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