Fix escape

This commit is contained in:
Laurent Destailleur 2018-08-16 01:01:38 +02:00
parent 4b7889b295
commit 2719c4eb43

View File

@ -1338,7 +1338,7 @@ class Propal extends CommonObject
if ($ref) {
$sql.= " AND p.entity IN (".getEntity('propal').")"; // Dont't use entity if you use rowid
$sql.= " AND p.ref='".$ref."'";
$sql.= " AND p.ref='".$this->db->escape($ref)."'";
}
else $sql.= " AND p.rowid=".$rowid;