]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
Merge branch 'strict-js' of wn/tt-rss into master
[tt-rss.git] / update.php
index 22dded6752bbae794a46777410fe07922689bf95..99f4a59dc7c13c96425c3b5ee6981574701bf15a 100755 (executable)
@@ -60,7 +60,6 @@
                <head>
                <title>Tiny Tiny RSS data update script.</title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-               <link rel="stylesheet" type="text/css" href="css/utility.css">
                </head>
 
                <body>
                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']]);