diff options
-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); } |