summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-08-02 18:08:00 +0300
committerAndrew Dolgov <[email protected]>2016-08-02 18:08:00 +0300
commit48007463861d8db8b2b79c2f4f54e0564edb0ec0 (patch)
tree3e53eac03c00aad445c98254536d076bcce79d75 /plugins
parent46506d3fd69b1dd8137bddf08ed8596771bf0b89 (diff)
tweet embed: force utf-8
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/af_redditimgur/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php
index e43846abf..7ab07b900 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('<?xml encoding="utf-8" ?>' . $oembed_result["html"])) {
$p = $doc->createElement("p");
$p->appendChild($doc->importNode(