mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Db: quote data before passing to pgsql
This commit is contained in:
parent
05919baf5d
commit
d5b3f25de9
@ -273,7 +273,9 @@ class Db extends DbConnection
|
|||||||
public function fetchActivityLogIdByChecksum($checksum)
|
public function fetchActivityLogIdByChecksum($checksum)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT id FROM director_activity_log WHERE checksum = ?';
|
$sql = 'SELECT id FROM director_activity_log WHERE checksum = ?';
|
||||||
return $this->db()->fetchOne($sql, $this->quoteBinary($checksum));
|
return $this->db()->fetchOne(
|
||||||
|
$this->db()->quoteInto($sql, $this->quoteBinary($checksum))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fetchActivityLogEntry($checksum)
|
public function fetchActivityLogEntry($checksum)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user