Skip to content

Commit

Permalink
Merge pull request #3723 from atm-alexis/FIX_double_escape_entrepot
Browse files Browse the repository at this point in the history
FIX double db escape add too quote
  • Loading branch information
eldy committed Oct 14, 2015
2 parents 84f5b72 + 0251728 commit f08d52b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htdocs/product/stock/class/entrepot.class.php
Expand Up @@ -135,14 +135,14 @@ function create($user)
*/
function update($id, $user)
{
$this->libelle=$this->db->escape(trim($this->libelle));
$this->description=$this->db->escape(trim($this->description));
$this->libelle=trim($this->libelle);
$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->zip=$this->zip?trim($this->zip):trim($this->zip);
$this->town=$this->town?trim($this->town):trim($this->town);
$this->address=trim($this->address);
$this->zip=trim($this->zip);
$this->town=trim($this->town);
$this->country_id=($this->country_id > 0 ? $this->country_id : $this->country_id);

$sql = "UPDATE ".MAIN_DB_PREFIX."entrepot ";
Expand Down

0 comments on commit f08d52b

Please sign in to comment.