Menu

#40 WordPress RSS 2.0 feeds parsed incorrectly

open
nobody
None
5
2009-12-28
2009-12-28
No

When parsing RSS feeds from WordPress there is a string catenation error in MagpieRSS that causes the item content to be stored as "Array" string instead of the actual content.

To fix this, change the "concat" method of rss_parse.inc to following:

function concat (&$str1, $str2="") {
if (!isset($str1) ) {
$str1="";
}

if (is_array($str1))
{
$str1[] = $str2;
return;
}

$str1 .= $str2;
}

This will ensure Magpie doesn't try to incorrectly catenate strings on top of arrays.

Discussion


Log in to post a comment.