diff options
author | Alib <aliboba@free.fr> | 2010-04-20 11:30:43 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-04-20 11:30:43 +0200 |
commit | 88535aaa87b81fb0cd175ce226f5075e3e7f28c5 (patch) | |
tree | 9b1270d8113e0b01d0aeb1f5cb75fa5ee6d83803 | |
parent | 45b3d3f1c0d38e5ebe8e871280f8dc6e835aaaeb (diff) | |
download | istreamdev-88535aaa87b81fb0cd175ce226f5075e3e7f28c5.tar.gz istreamdev-88535aaa87b81fb0cd175ce226f5075e3e7f28c5.tar.bz2 |
added escape for music filename
-rw-r--r-- | js/istreamdev.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 28ef4d1..8f98c33 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -752,9 +752,9 @@ function addplayer(button) { async: false,
success: function(json) {
var track = json.track;
- playercode = "<embed id='musicplayer' enablejavascript='true' id='musicplayer' src='" + track[0].file + "' width='0' height='0' autoplay='false' name='player' type='audio/mp3' loop='true' controller='false'";
+ playercode = "<embed id='musicplayer' enablejavascript='true' id='musicplayer' src='" + escape(track[0].file) + "' width='0' height='0' autoplay='false' name='player' type='audio/mp3' loop='true' controller='false'";
for ( var i=1; i<track.length; i+=1 ) {
- qtattr = "'<" + track[i].file + ">'";
+ qtattr = "'<" + escape(track[i].file) + ">'";
playercode += "qtnext" + i + "=" + qtattr;
}
playercode += "></embed>";
|