diff options
author | Alib <aliboba@free.fr> | 2010-02-25 17:06:38 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-25 17:06:38 +0100 |
commit | acdb1df5794e25aab819a4fb9821f143f03ecbae (patch) | |
tree | e57655f3295d42849dce4afd15fd432376ed304b /javascript | |
parent | de192cd8a207d57255ce00b8924c648fd6a44ee7 (diff) | |
download | istreamdev-acdb1df5794e25aab819a4fb9821f143f03ecbae.tar.gz istreamdev-acdb1df5794e25aab819a4fb9821f143f03ecbae.tar.bz2 |
url encoding in ajax.js
Diffstat (limited to 'javascript')
-rwxr-xr-x | javascript/ajax.js | 5 |
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); } |