]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix broken tag detection due to $entry_content being escaped
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 23 Nov 2005 16:51:09 +0000 (17:51 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 23 Nov 2005 16:51:09 +0000 (17:51 +0100)
backend.php
functions.php

index ff3e2605658672ff232cb7c56ddebae751ec621a..af49cf2a12cb411123980201a31bcc8bbfea65cc 100644 (file)
                $limit = $_GET["limit"];
 
                if (!$feed) {
-                       print "Error: no feed to display.";
                        return;
                }
 
index 7ca9bb81c00c2253822b507f0c4a68d5511bb74e..19d4176ecd08e26a59bb17f57b62b58309d44075 100644 (file)
                                if (!$entry_content) $entry_content = $item["content"];
                                if (!$entry_content) $entry_content = $item["description"];
 
+                               $entry_content_unescaped = $entry_content;
+
 //                             if (!$entry_content) continue;
 
                                // WTF
 
                                $entry_tags = null;
 
-                               preg_match_all("/<a.*?rel=.tag.*?>([^>]+)<\/a>/i", $entry_content,
-                                       $entry_tags);
+                               preg_match_all("/<a.*?rel=.tag.*?>([^>]+)<\/a>/i", 
+                                       $entry_content_unescaped, $entry_tags);
+
+//                             print "<br>$entry_title : $entry_content_unescaped<br>";
+//                             print_r($entry_tags);
 
                                $entry_tags = $entry_tags[1];