mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
rssutils: forbid question marks in tsvector data, PDO gets confused sometimes even by quoted ?s
This commit is contained in:
@@ -367,7 +367,8 @@
|
||||
while (true) {
|
||||
|
||||
while ($line = $sth->fetch()) {
|
||||
$tsvector_combined = mb_substr($line['title'] . ' ' . strip_tags(str_replace('<', ' <', $line['content'])),
|
||||
$tsvector_combined = mb_substr($line['title'] . ' ' .
|
||||
preg_replace('/[<\?\:]/', ' ', strip_tags($line['content'])),
|
||||
0, 1000000);
|
||||
|
||||
$usth->execute([$tsvector_combined, $line['id']]);
|
||||
|
||||
Reference in New Issue
Block a user