work around yet another magpie parsing bug (closes #174)

This commit is contained in:
Andrew Dolgov 2007-11-21 06:24:46 +01:00
parent 70ee302871
commit ea322415d2
1 changed files with 10 additions and 4 deletions

View File

@ -695,6 +695,7 @@
if ($_GET['xdebug']) { if ($_GET['xdebug']) {
print_r($item); print_r($item);
} }
if (ENABLE_SIMPLEPIE) { if (ENABLE_SIMPLEPIE) {
@ -774,6 +775,10 @@
if (!$entry_content) $entry_content = $item["content:encoded"]; if (!$entry_content) $entry_content = $item["content:encoded"];
if (!$entry_content) $entry_content = $item["content"]; if (!$entry_content) $entry_content = $item["content"];
// Magpie bugs are getting ridiculous
if (trim($entry_content) == "Array") $entry_content = false;
if (!$entry_content) $entry_content = $item["atom_content"]; if (!$entry_content) $entry_content = $item["atom_content"];
if (!$entry_content) $entry_content = $item["summary"]; if (!$entry_content) $entry_content = $item["summary"];
if (!$entry_content) $entry_content = $item["description"]; if (!$entry_content) $entry_content = $item["description"];
@ -785,9 +790,10 @@
} }
} }
// print_r($item); if ($_GET["xdebug"]) {
// print_r(htmlspecialchars($entry_content)); print "update_rss_feed: content: ";
// print "<br>"; print_r(htmlspecialchars($entry_content));
}
$entry_content_unescaped = $entry_content; $entry_content_unescaped = $entry_content;