mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +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)
|
||||
{
|
||||
$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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user