X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update.php;h=553175c8cea7f3983f316422709d61a7775284a1;hb=963c22646b3e1bd544bd957bf34175b996bd6e53;hp=99f4a59dc7c13c96425c3b5ee6981574701bf15a;hpb=4fa64e8446563a89f04badfdfecc8a57750c083d;p=tt-rss.git diff --git a/update.php b/update.php index 99f4a59d..553175c8 100755 --- a/update.php +++ b/update.php @@ -366,13 +366,11 @@ while (true) { while ($line = $sth->fetch()) { - $tsvector_combined = mb_substr($line['title'] . ' ' . - preg_replace('/[<\?\:]/', ' ', strip_tags($line['content'])), - 0, 1000000); + $tsvector_combined = mb_substr(strip_tags($line["title"] . " " . $line["content"]), 0, 1000000); - $usth->execute([$tsvector_combined, $line['id']]); + $usth->execute([$tsvector_combined, $line['id']]); - $processed++; + $processed++; } print "Processed $processed articles...\n";