db escape
This commit is contained in:
parent
79846b8cdf
commit
f928bacfb9
@ -562,7 +562,7 @@ class FichinterRec extends Fichinter
|
|||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
if ($user->rights->fichinter->creer) {
|
if ($user->rights->fichinter->creer) {
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."fichinter_rec ";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."fichinter_rec ";
|
||||||
$sql .= " SET frequency = '".$this->db->escape($freq)."', last_gen='".$this->db-escpae($courant)."'";
|
$sql .= " SET frequency = '".$this->db->escape($freq)."', last_gen='".$this->db-escape($courant)."'";
|
||||||
$sql .= " WHERE rowid = ".$this->id;
|
$sql .= " WHERE rowid = ".$this->id;
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
@ -605,8 +605,9 @@ class FichinterRec extends Fichinter
|
|||||||
$link = '<a href="'.$url.'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
|
$link = '<a href="'.$url.'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
|
||||||
$linkend='</a>';
|
$linkend='</a>';
|
||||||
|
|
||||||
if ($withpicto)
|
if ($withpicto) {
|
||||||
$result.=($link.img_object($label, $picto, 'class="classfortooltip"').$linkend);
|
$result.= $link.img_object($label, $picto, 'class="classfortooltip"').$linkend;
|
||||||
|
}
|
||||||
if ($withpicto && $withpicto != 2) $result.=' ';
|
if ($withpicto && $withpicto != 2) $result.=' ';
|
||||||
if ($withpicto != 2) $result.=$link.$this->ref.$linkend;
|
if ($withpicto != 2) $result.=$link.$this->ref.$linkend;
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user