From 893eff03badcd417687ff5ae25063b783cfb4aa4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 4 Apr 2024 11:21:15 +0200 Subject: [PATCH] Fix escape js --- htdocs/compta/facture/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php index 00765962c66..c8927e87326 100644 --- a/htdocs/compta/facture/list.php +++ b/htdocs/compta/facture/list.php @@ -2057,7 +2057,7 @@ if ($num > 0) { if (strpos($obj->ref, 'PROV') !== false) { //If is a draft invoice, load var to be able to add products $place = str_replace(")", "", str_replace("(PROV-POS".$_SESSION["takeposterminal"]."-", "", $obj->ref)); - print 'parent.place=\''.$place.'\''; + print 'parent.place=\''.dol_escape_js($place).'\''; } print '});"'; }