summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-25 17:12:18 +0100
committerAlib <aliboba@free.fr>2010-02-25 17:12:18 +0100
commit86db3c6c84dcbdb853a86e4a3b78a1521ad9fc63 (patch)
treef41095f575fb41f6ae17c0ac9910fa21a22e55e9
parentacdb1df5794e25aab819a4fb9821f143f03ecbae (diff)
downloadistreamdev-86db3c6c84dcbdb853a86e4a3b78a1521ad9fc63.tar.gz
istreamdev-86db3c6c84dcbdb853a86e4a3b78a1521ad9fc63.tar.bz2
escape in function.js too
-rwxr-xr-xjavascript/functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/functions.js b/javascript/functions.js
index c62efbd..c54f44e 100755
--- a/javascript/functions.js
+++ b/javascript/functions.js
@@ -196,9 +196,9 @@ t
function addplayer(path,name,track) {
- playercode= "<embed src='" + track[0] + "' width='0' height='0' autoplay='false' name='player' type='audio/mp3' loop='true' controller='false' ";
+ playercode= "<embed src='" + escape(track[0]) + "' width='0' height='0' autoplay='false' name='player' type='audio/mp3' loop='true' controller='false' ";
for ( var i=1; i<track.length; i+=1 ){
- playercode += "qtnext" + i + "='<" + track[i] + ">' ";
+ playercode += "qtnext" + i + "='<" + escape(track[i]) + ">' ";
}
playercode+= "></embed>";