You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static function absolutize_url($relative, $base)
will not return an object if the link is one of the messed up "http://http://whatever.com" bad encoding variety, which will kill the RSS read.
It also seems to die if the "$relative" section has a double forward slash.
The text was updated successfully, but these errors were encountered:
Got the same problem.
Changed the function to:
public static function absolutize_url($relative, $base)
{
$iri = SimplePie_IRI::absolutize(new SimplePie_IRI($base), $relative);
if($iri === false){
return false;
}
return $iri->get_uri();
}
public static function absolutize_url($relative, $base)
will not return an object if the link is one of the messed up "http://http://whatever.com" bad encoding variety, which will kill the RSS read.
It also seems to die if the "$relative" section has a double forward slash.
The text was updated successfully, but these errors were encountered: