From: Andrew Dolgov Date: Tue, 2 Aug 2016 15:08:00 +0000 (+0300) Subject: tweet embed: force utf-8 X-Git-Tag: 16.8~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=48007463861d8db8b2b79c2f4f54e0564edb0ec0;p=tt-rss.git tweet embed: force utf-8 --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index e43846ab..7ab07b90 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -106,7 +106,7 @@ class Af_RedditImgur extends Plugin { if ($oembed_result && isset($oembed_result["html"])) { $tmp = new DOMDocument(); - if ($tmp->loadHTML($oembed_result["html"])) { + if ($tmp->loadHTML('' . $oembed_result["html"])) { $p = $doc->createElement("p"); $p->appendChild($doc->importNode(