1
0
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:
Andrew Dolgov
2017-12-03 10:10:01 +03:00
parent 64312bfd71
commit 49a888ecce
2 changed files with 27 additions and 16 deletions

View File

@@ -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']]);