Skip to content
Snippets Groups Projects
Commit f08d52b0 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #3723 from atm-alexis/FIX_double_escape_entrepot

FIX double db escape add too quote
parents 84f5b72d 0251728e
Branches
Tags
No related merge requests found
...@@ -135,14 +135,14 @@ class Entrepot extends CommonObject ...@@ -135,14 +135,14 @@ class Entrepot extends CommonObject
*/ */
function update($id, $user) function update($id, $user)
{ {
$this->libelle=$this->db->escape(trim($this->libelle)); $this->libelle=trim($this->libelle);
$this->description=$this->db->escape(trim($this->description)); $this->description=trim($this->description);
$this->lieu=$this->db->escape(trim($this->lieu)); $this->lieu=trim($this->lieu);
$this->address=$this->db->escape(trim($this->address)); $this->address=trim($this->address);
$this->zip=$this->zip?trim($this->zip):trim($this->zip); $this->zip=trim($this->zip);
$this->town=$this->town?trim($this->town):trim($this->town); $this->town=trim($this->town);
$this->country_id=($this->country_id > 0 ? $this->country_id : $this->country_id); $this->country_id=($this->country_id > 0 ? $this->country_id : $this->country_id);
$sql = "UPDATE ".MAIN_DB_PREFIX."entrepot "; $sql = "UPDATE ".MAIN_DB_PREFIX."entrepot ";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment