]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
pass tsvector data as a named parameter on article update, remove escaping hacks
[tt-rss.git] / update.php
index 99f4a59dc7c13c96425c3b5ee6981574701bf15a..553175c8cea7f3983f316422709d61a7775284a1 100755 (executable)
                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";