diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-25 02:03:48 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-25 02:03:48 +0100 |
commit | 0e5d920a64954cd415ae17f73bdabf8d1fe6cf39 (patch) | |
tree | 6ba6630df2e2840fc11c635f7294af9039446313 /includes/inc_audio.php | |
parent | d350aac197f8ad5ab501c3b25b6543e802de0e47 (diff) | |
download | istreamdev-0e5d920a64954cd415ae17f73bdabf8d1fe6cf39.tar.gz istreamdev-0e5d920a64954cd415ae17f73bdabf8d1fe6cf39.tar.bz2 |
Fixed some character issues
Diffstat (limited to 'includes/inc_audio.php')
-rwxr-xr-x | includes/inc_audio.php | 10 |
1 files changed, 8 insertions, 2 deletions
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 " <li>\r\n"; - print " <a class=\"noeffect\" href=\"javascript:sendForm('dir_{$medianame_array[$cnt]}');\">\r\n"; + print " <a class=\"noeffect\" href=\"javascript:sendForm('dir_$medianame2');\">\r\n"; print " <span class=\"name\">{$medianame_array[$cnt]}</span><span class=\"time\">></span>\r\n"; print " </a>\r\n"; print " </li>\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 " <li>\r\n"; - print " <a class=\"noeffect\" href=\"javascript:playmusic('{$mediapath}{$subdir}','{$medianame_array[$cnt]}');\">\r\n"; + print " <a class=\"noeffect\" href=\"javascript:playmusic('{$mediapath2}{$subdir2}','{$medianame2}');\">\r\n"; print " <span class=\"number\">$idx</span><span class=\"stop\"></span><span class=\"name\">{$medianame_array[$cnt]}</span>\r\n"; print " </a>\r\n"; print " </li>\r\n"; |