From e7c046bb6e3b391c0420baa222bde11fca711074 Mon Sep 17 00:00:00 2001 From: SofianeLasri <alasri250@gmail.com> Date: Sat, 15 Jan 2022 16:24:51 +0100 Subject: [PATCH] decodeURIComponent --- pages/client/shops.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/client/shops.php b/pages/client/shops.php index c28f773a..09699756 100644 --- a/pages/client/shops.php +++ b/pages/client/shops.php @@ -223,10 +223,10 @@ function goToShop(id){ var shopItemDetail='<p>Type: <strong>'+$('#'+id).attr('type')+'</strong></p>'; if($("#"+id).attr("displayName") != ""){ - shopItemDetail+='<p>Nom personnalisé: <strong>'+decodeURI($("#"+id).attr("displayName"))+'</strong></p>'; + shopItemDetail+='<p>Nom personnalisé: <strong>'+decodeURIComponent($("#"+id).attr("displayName"))+'</strong></p>'; } if($("#"+id).attr("enchants") != ""){ - let enchants = JSON.parse(decodeURI($("#"+id).attr("enchants"))); + let enchants = JSON.parse(decodeURIComponent($("#"+id).attr("enchants"))); for(const [key, value] of Object.entries(enchants)){ shopItemDetail+='<p>Enchantement: <strong>'+key+'</strong> ('+value+')</p>'; } -- GitLab