diff options
-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>";
|