]> git.wh0rd.org - tt-rss.git/blobdiff - include/rssfuncs.php
catchup maybe add workaround for mysql 5.7 derived_merge
[tt-rss.git] / include / rssfuncs.php
index a922516cd71b71633f4cc24b086b84a71d2fb5c7..476d12be5764c98442eb973ac344f36651aa40f8 100644 (file)
                                        _debug("RID: $entry_ref_id, IID: $entry_int_id", $debug_enabled);
 
                                        if (DB_TYPE == "pgsql") {
-                                               $tsvector_combined = db_escape_string(mb_substr($entry_title . ' ' . strip_tags($entry_content),
+                                          $tsvector_combined = db_escape_string(mb_substr($entry_title . ' ' . strip_tags(str_replace('<', ' <', $entry_content)),
                                                        0, 1000000));
 
                                                $tsvector_qpart = "tsvector_combined = to_tsvector('$feed_language', '$tsvector_combined'),";
                                        if ($file_content && strlen($file_content) > _MIN_CACHE_IMAGE_SIZE) {
                                                file_put_contents($local_filename, $file_content);
                                        }
+                               } else {
+                                       touch($local_filename);
                                }
                        }
                }