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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user