From b57082e671ab030f471c6c325a103336e24eaaa7 Mon Sep 17 00:00:00 2001 From: henoheno Date: Fri, 5 May 2006 13:32:09 +0900 Subject: [PATCH 1/1] BugTrack2/176: Respect encoding as rss said (Base patched by matsuo2) --- plugin/showrss.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/showrss.inc.php b/plugin/showrss.inc.php index 2570930..8b66a43 100644 --- a/plugin/showrss.inc.php +++ b/plugin/showrss.inc.php @@ -1,6 +1,6 @@ ]*\bencoding="([a-z0-9-_]+)"/i', $buf, $matches)) { + if(preg_match('/<\?xml [^>]*\bencoding="([a-z0-9-_]+)"/i', $buf, $matches)) { $this->encoding = $matches[1]; } else { $this->encoding = mb_detect_encoding($buf); -- 2.11.0