From 49a888ecce9c7fbbee0156b7845c3b28b3f48c1a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Dec 2017 10:10:01 +0300 Subject: rssutils: forbid question marks in tsvector data, PDO gets confused sometimes even by quoted ?s --- update.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'update.php') diff --git a/update.php b/update.php index 22dded675..3116ab781 100755 --- a/update.php +++ b/update.php @@ -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']]); -- cgit v1.2.3-54-g00ecf