A vrifier 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';
|
||||
|
||||
$this->ref = trim(sanitize_string($this->ref));
|
||||
$this->libelle = trim($this->libelle);
|
||||
$this->description = trim($this->description);
|
||||
$this->note = trim($this->note);
|
||||
$this->libelle = trim(addslashes($this->libelle));
|
||||
$this->description = trim(addslashes($this->description));
|
||||
$this->note = trim(addslashes($this->note));
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."product ";
|
||||
$sql .= " SET label = '" . addslashes($this->libelle) ."'";
|
||||
|
||||
@ -121,7 +121,7 @@ if ($_POST["action"] == 'update' &&
|
||||
$product->ref = stripslashes($_POST["ref"]);
|
||||
$product->libelle = stripslashes($_POST["libelle"]);
|
||||
if ( isset( $_POST["price"] ) )
|
||||
$product->price = stripslashes($_POST["price"]);
|
||||
$product->price = stripslashes($_POST["price"]);
|
||||
$product->tva_tx = $_POST["tva_tx"];
|
||||
$product->description = stripslashes($_POST["desc"]);
|
||||
$product->note = stripslashes($_POST["note"]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user