From d51048196bdddd9909d88cef05d3ebdfaac36234 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 17 Feb 2014 00:15:42 +0100 Subject: Revert "SimplePie : tolérance caractères UTF-8 invalides" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7e66db7782b7fa7f7262a70ccea5c377341886cd. --- lib/SimplePie/SimplePie.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/SimplePie/SimplePie.php') diff --git a/lib/SimplePie/SimplePie.php b/lib/SimplePie/SimplePie.php index 99e84901b..d7aaeb0c5 100644 --- a/lib/SimplePie/SimplePie.php +++ b/lib/SimplePie/SimplePie.php @@ -1382,7 +1382,8 @@ class SimplePie foreach ($encodings as $encoding) { // Change the encoding to UTF-8 (as we always use UTF-8 internally) - if ($utf8_data = $this->registry->call('Misc', 'change_encoding', array($this->raw_data, $encoding, 'UTF-8'))) + if ($utf8_data = (empty($encoding) || $encoding === 'UTF-8') ? $this->raw_data : //FreshRSS + $this->registry->call('Misc', 'change_encoding', array($this->raw_data, $encoding, 'UTF-8'))) { // Create new parser $parser = $this->registry->create('Parser'); -- cgit v1.2.3