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:
Regis Houssin 2006-06-07 16:02:18 +00:00
parent f71b505445
commit 75bcf8a48f
2 changed files with 4 additions and 4 deletions

View File

@ -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) ."'";