diff options
author | Andrew Dolgov <[email protected]> | 2019-03-22 14:56:53 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-03-22 14:56:53 +0300 |
commit | 59d0e35b7d9f2e656f33052eca62b5bd7afef591 (patch) | |
tree | ba089e123bd538b325d670ac31fe65852c0d02b7 /classes/handler/public.php | |
parent | b583ca12fb1f6fdf02a15762ee7036b2ec653c27 (diff) | |
parent | 671f4cee657f36881eeeea7e5d314034252e3ee7 (diff) |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index f73427cbf..318cecd72 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -329,7 +329,7 @@ class Handler_Public extends Handler { if (!$og_image) { $tmpdoc = new DOMDocument(); - if (@$tmpdoc->loadHTML(mb_substr($content, 0, 131070))) { + if (@$tmpdoc->loadHTML('<?xml encoding="UTF-8">' . mb_substr($content, 0, 131070))) { $tmpxpath = new DOMXPath($tmpdoc); $imgs = $tmpxpath->query("//img"); |