1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

feedparser: fix syntax error

This commit is contained in:
Andrew Dolgov
2016-11-11 19:47:09 +03:00
parent acfee412a3
commit e4071d2544

View File

@@ -18,7 +18,7 @@ class FeedParser {
$encoding = strtolower($matches[2]);
if (in_array($encoding, array_map('strtolower', mb_list_encodings()))) {
if (in_array($encoding, array_map('strtolower', mb_list_encodings())))
$data = mb_convert_encoding($data, 'UTF-8', $encoding);
$data = preg_replace('/^<\?xml[\t\n\r ].*?\?>/s', $matches[1] . "UTF-8" . $matches[3] , $data);