fix broken tag detection due to $entry_content being escaped

This commit is contained in:
Andrew Dolgov 2005-11-23 17:51:09 +01:00
parent 3b0feb9b7f
commit ee2c305003
2 changed files with 7 additions and 3 deletions

View File

@ -580,7 +580,6 @@
$limit = $_GET["limit"];
if (!$feed) {
print "Error: no feed to display.";
return;
}

View File

@ -266,6 +266,8 @@
if (!$entry_content) $entry_content = $item["content"];
if (!$entry_content) $entry_content = $item["description"];
$entry_content_unescaped = $entry_content;
// if (!$entry_content) continue;
// WTF
@ -403,8 +405,11 @@
$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];