aboutsummaryrefslogtreecommitdiff
path: root/plugins/cache_starred_images/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2019-03-22 14:56:53 +0300
committerAndrew Dolgov <noreply@fakecake.org>2019-03-22 14:56:53 +0300
commit59d0e35b7d9f2e656f33052eca62b5bd7afef591 (patch)
treeba089e123bd538b325d670ac31fe65852c0d02b7 /plugins/cache_starred_images/init.php
parentb583ca12fb1f6fdf02a15762ee7036b2ec653c27 (diff)
parent671f4cee657f36881eeeea7e5d314034252e3ee7 (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'plugins/cache_starred_images/init.php')
-rwxr-xr-xplugins/cache_starred_images/init.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php
index a1916e226..714d4cb9b 100755
--- a/plugins/cache_starred_images/init.php
+++ b/plugins/cache_starred_images/init.php
@@ -190,12 +190,8 @@ class Cache_Starred_Images extends Plugin implements IHandler {
return;
}
- $charset_hack = '<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- </head>';
-
$doc = new DOMDocument();
- $doc->loadHTML($charset_hack . $content);
+ $doc->loadHTML('<?xml encoding="UTF-8">' . $content);
$xpath = new DOMXPath($doc);
$entries = $xpath->query('(//img[@src])|(//video/source[@src])');