From e0b0b01f5aabd7f747fd5c7260b28cdcaac890c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Wed, 15 Apr 2015 09:20:43 +0200 Subject: [PATCH] Decode URI in list too to be save --- static/js/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/list.js b/static/js/list.js index b9e1914d..025b8698 100755 --- a/static/js/list.js +++ b/static/js/list.js @@ -54,7 +54,7 @@ function populate_list(msg) } }else if(!listeID.now_playing){ //check that the song isnt playing - var video_title=listeID.title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&"); + var video_title=decodeURIComponent(listeID.title); var video_id = listeID.id; var video_thumb = "background-image:url('http://img.youtube.com/vi/"+video_id+"/mqdefault.jpg');"; //var delsong = ""; if(pass_corr=="correct");