diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php index 5cc658702bc..d8911c49dba 100644 --- a/htdocs/admin/commande.php +++ b/htdocs/admin/commande.php @@ -209,7 +209,8 @@ if ($action == 'set_COMMANDE_DRAFT_WATERMARK') if ($action == 'set_COMMANDE_FREE_TEXT') { - $freetext = GETPOST("COMMANDE_FREE_TEXT"); + $freetext = GETPOST("COMMANDE_FREE_TEXT"); // No alpha here, we want exact string + $res = dolibarr_set_const($db, "COMMANDE_FREE_TEXT",$freetext,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; @@ -407,12 +408,12 @@ foreach ($dirmodels as $reldir) } closedir($handle); arsort($filelist); - + foreach($filelist as $file) { if (preg_match('/\.modules\.php$/i',$file) && preg_match('/^(pdf_|doc_)/',$file)) { - + if (file_exists($dir.'/'.$file)) { $name = substr($file, 4, dol_strlen($file) -16); diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index 402bc7501cb..9c0152724df 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -254,9 +254,9 @@ if ($action == 'set_FACTURE_DRAFT_WATERMARK') if ($action == 'set_FACTURE_FREE_TEXT') { - $free = GETPOST('FACTURE_FREE_TEXT','alpha'); + $freetext = GETPOST('FACTURE_FREE_TEXT'); // No alpha here, we want exact string - $res = dolibarr_set_const($db, "FACTURE_FREE_TEXT",$free,'chaine',0,'',$conf->entity); + $res = dolibarr_set_const($db, "FACTURE_FREE_TEXT",$freetext,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; diff --git a/htdocs/admin/fournisseur.php b/htdocs/admin/fournisseur.php index d2f5ef39512..0f69d888372 100644 --- a/htdocs/admin/fournisseur.php +++ b/htdocs/admin/fournisseur.php @@ -250,8 +250,9 @@ if ($action == 'addcat') if ($action == 'set_SUPPLIER_INVOICE_FREE_TEXT') { - $free = GETPOST('SUPPLIER_INVOICE_FREE_TEXT','alpha'); - $res = dolibarr_set_const($db, "SUPPLIER_INVOICE_FREE_TEXT",$free,'chaine',0,'',$conf->entity); + $freetext = GETPOST('SUPPLIER_INVOICE_FREE_TEXT'); // No alpha here, we want exact string + + $res = dolibarr_set_const($db, "SUPPLIER_INVOICE_FREE_TEXT",$freetext,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; diff --git a/htdocs/admin/propal.php b/htdocs/admin/propal.php index a0ed2dcba75..71d73892cc1 100644 --- a/htdocs/admin/propal.php +++ b/htdocs/admin/propal.php @@ -130,7 +130,7 @@ if ($action == 'set_PROPALE_DRAFT_WATERMARK') if ($action == 'set_PROPALE_FREE_TEXT') { - $freetext = GETPOST('PROPALE_FREE_TEXT','alpha'); + $freetext = GETPOST('PROPALE_FREE_TEXT'); // No alpha here, we want exact string $res = dolibarr_set_const($db, "PROPALE_FREE_TEXT",$freetext,'chaine',0,'',$conf->entity); diff --git a/htdocs/compta/bank/admin/bank.php b/htdocs/compta/bank/admin/bank.php index 0c63f19dbb5..9c915aa2440 100644 --- a/htdocs/compta/bank/admin/bank.php +++ b/htdocs/compta/bank/admin/bank.php @@ -45,8 +45,9 @@ $action = GETPOST('action','alpha'); if ($action == 'set_BANK_CHEQUERECEIPT_FREE_TEXT') { - $free = GETPOST('BANK_CHEQUERECEIPT_FREE_TEXT','alpha'); - $res = dolibarr_set_const($db, "BANK_CHEQUERECEIPT_FREE_TEXT",$free,'chaine',0,'',$conf->entity); + $freetext = GETPOST('BANK_CHEQUERECEIPT_FREE_TEXT'); // No alpha here, we want exact string + + $res = dolibarr_set_const($db, "BANK_CHEQUERECEIPT_FREE_TEXT",$freetext,'chaine',0,'',$conf->entity); if (! $res > 0) $error++;