]> git.wh0rd.org - tt-rss.git/commitdiff
update stored article after filter has finished processing to prevent plugins from...
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 12 Aug 2014 15:36:29 +0000 (19:36 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 12 Aug 2014 15:36:29 +0000 (19:36 +0400)
include/rssfuncs.php

index cdc490cb09d9f0440455884c29252d5bf7d14d08..f657f8413fffe379bda3d14385ebc57ea02b453d 100644 (file)
 
                                foreach ($pluginhost->get_hooks(PluginHost::HOOK_ARTICLE_FILTER) as $plugin) {
                                        $article = $plugin->hook_article_filter($article);
+
+                                       $article["stored"] = array("title" => $article["title"],
+                                               "content" => $article["content"],
+                                               "link" => $article["link"],
+                                               "tags" => $article["tags"],
+                                               "author" => $article["author"]);
                                }
 
                                $entry_tags = $article["tags"];
                                $entry_plugin_data = db_escape_string($article["plugin_data"]);
                                $entry_content = $article["content"]; // escaped below
 
-
                                _debug("plugin data: $entry_plugin_data", $debug_enabled);
 
                                if ($cache_images && is_writable(CACHE_DIR . '/images'))