diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-05 14:00:23 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-05 14:00:23 +0100 |
commit | 74e823f1f9ca55ab7a33dabe3e09fec2cafc35c6 (patch) | |
tree | 6fe8d9706721cbc0ab7e025c926cf516b6fd935c /articleenhancer | |
parent | 18d1f21906454130479bae13f50561624a8d25de (diff) |
fix xpath article enhancer encoding bugs
Diffstat (limited to 'articleenhancer')
-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)); |