A vérifier mais j'ai du ajouter encore des addslashes car il ne prenait plus les quotes
dans le libellé, la description et note
This commit is contained in:
parent
f71b505445
commit
75bcf8a48f
@ -208,9 +208,9 @@ class Product
|
|||||||
if (! $this->libelle) $this->libelle = 'LIBELLE MANQUANT';
|
if (! $this->libelle) $this->libelle = 'LIBELLE MANQUANT';
|
||||||
|
|
||||||
$this->ref = trim(sanitize_string($this->ref));
|
$this->ref = trim(sanitize_string($this->ref));
|
||||||
$this->libelle = trim($this->libelle);
|
$this->libelle = trim(addslashes($this->libelle));
|
||||||
$this->description = trim($this->description);
|
$this->description = trim(addslashes($this->description));
|
||||||
$this->note = trim($this->note);
|
$this->note = trim(addslashes($this->note));
|
||||||
|
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."product ";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."product ";
|
||||||
$sql .= " SET label = '" . addslashes($this->libelle) ."'";
|
$sql .= " SET label = '" . addslashes($this->libelle) ."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user