diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2019-03-22 14:56:53 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2019-03-22 14:56:53 +0300 |
| commit | 59d0e35b7d9f2e656f33052eca62b5bd7afef591 (patch) | |
| tree | ba089e123bd538b325d670ac31fe65852c0d02b7 /plugins/cache_starred_images/init.php | |
| parent | b583ca12fb1f6fdf02a15762ee7036b2ec653c27 (diff) | |
| parent | 671f4cee657f36881eeeea7e5d314034252e3ee7 (diff) | |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'plugins/cache_starred_images/init.php')
| -rwxr-xr-x | plugins/cache_starred_images/init.php | 6 |
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])'); |