From acdb1df5794e25aab819a4fb9821f143f03ecbae Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 25 Feb 2010 17:06:38 +0100 Subject: url encoding in ajax.js --- javascript/ajax.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'javascript/ajax.js') 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); } -- cgit v1.2.3