]> git.wh0rd.org Git - tt-rss.git/commitdiff
better check for img tags to skip inlining image attachments
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 26 Mar 2009 10:56:52 +0000 (13:56 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 26 Mar 2009 10:56:52 +0000 (13:56 +0300)
functions.php

index 4c867f26c198109af584787bfe2116c46cb2b65b..9371596cc6d898d2a07796f3ca36348a78b0d248 100644 (file)
 
                                print "<div class=\"postEnclosures\">";
 
-                               if (!preg_match("/img/i", $article_content)) {
+                               if (!preg_match("/<img/i", $article_content)) {
                                        foreach ($entries as $entry) {
                                                if (preg_match("/image/", $entry["type"])) {
                                                        print "<p><img