From 48007463861d8db8b2b79c2f4f54e0564edb0ec0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Aug 2016 18:08:00 +0300 Subject: [PATCH] tweet embed: force utf-8 --- plugins/af_redditimgur/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.39.2