1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

pass tsvector data as a named parameter on article update, remove escaping hacks

This commit is contained in:
Andrew Dolgov
2018-04-03 13:57:27 +03:00
parent 4fa64e8446
commit 963c22646b
2 changed files with 15 additions and 18 deletions

View File

@@ -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";