diff options
Diffstat (limited to 'articleenhancer/xpatharticleenhancer.php')
-rw-r--r-- | articleenhancer/xpatharticleenhancer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/articleenhancer/xpatharticleenhancer.php b/articleenhancer/xpatharticleenhancer.php index 23af24893..5a950e649 100644 --- a/articleenhancer/xpatharticleenhancer.php +++ b/articleenhancer/xpatharticleenhancer.php @@ -50,7 +50,7 @@ class XPathArticleEnhancer implements ArticleEnhancer { if(preg_match($regex, $item->getUrl())) { list($body, $contentType) = $this->getFile($item->getUrl()); - if(preg_match('/(?<=charset=)[^;]*/', $contentType, $matches)) { + if(preg_match('/(?<=charset=)[^;]*/', $body, $matches)) { $encoding = $matches[0]; $body = mb_convert_encoding($body, 'HTML-ENTITIES', strtoupper($encoding)); |