simplepie
simplepie copied to clipboard
Image enclosure bug
I tested image enclosure and i alway get error like this or url always containing ?#
Sometime it's empty but show //?#
or image url: http://www.website.com/img/image.jpg?#
if ($enclosure = $item->get_enclosure(0)){
if ( $enclosure->get_link() && stristr($enclosure->get_type(), 'image/') ){
echo $enclosure->get_link();
}
}
PHP 7.x ?? Probably caused by the buggy SimplePie_IRI class, see #443 and #520 (no fix available atm)
Yes php 7
@onigetoc Does the problem still occur in version 1.8.0? If yes, could you please provide more data to reproduce this issue?