]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
rssutils: forbid question marks in tsvector data, PDO gets confused sometimes even...
[tt-rss.git] / update.php
index 22dded6752bbae794a46777410fe07922689bf95..3116ab7815cc1a4521b005ed3d436a3015e1026d 100755 (executable)
                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']]);