Skip to content

Commit

Permalink
PHP8.1: b8 spam filter: add connection arg to pg_escape_string() call
Browse files Browse the repository at this point in the history
Required since PHP 8.1
  • Loading branch information
tenzap committed Oct 29, 2024
1 parent 43047ce commit e20ee3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/b8/storage/pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function fetch_token_data(array $tokens)

$escaped = [];
foreach ($tokens as $token) {
$escaped[] = pg_escape_string($token);
$escaped[] = pg_escape_string($this->pgsql, $token);
}
$result = pg_query($this->pgsql, 'SELECT token, count_ham, count_spam'
. ' FROM ' . $this->table
Expand Down

0 comments on commit e20ee3c

Please sign in to comment.