]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
Sanitize language obtained for an entry.
[tt-rss.git] / update.php
index 22dded6752bbae794a46777410fe07922689bf95..553175c8cea7f3983f316422709d61a7775284a1 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'])),
-                                       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";