summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-25 17:06:38 +0100
committerAlib <aliboba@free.fr>2010-02-25 17:06:38 +0100
commitacdb1df5794e25aab819a4fb9821f143f03ecbae (patch)
treee57655f3295d42849dce4afd15fd432376ed304b /javascript
parentde192cd8a207d57255ce00b8924c648fd6a44ee7 (diff)
downloadistreamdev-acdb1df5794e25aab819a4fb9821f143f03ecbae.tar.gz
istreamdev-acdb1df5794e25aab819a4fb9821f143f03ecbae.tar.bz2
url encoding in ajax.js
Diffstat (limited to 'javascript')
-rwxr-xr-xjavascript/ajax.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/javascript/ajax.js b/javascript/ajax.js
index e838c3c..b9291cf 100755
--- a/javascript/ajax.js
+++ b/javascript/ajax.js
@@ -33,8 +33,9 @@ function playmusic(path,name)
xhr = new XMLHttpRequest();
//on définit l'appel de la fonction au retour serveur
xhr.onreadystatechange = function() { openpls(xhr); };
-
- xhr.open("GET", "genplaylist.php?path=" + path + "&name=" + name, false);
+ encpath=escape(path);
+ encname=escape(name);
+ xhr.open("GET", "genplaylist.php?path=" + encpath + "&name=" + encname, false);
xhr.send(null);
}