From 7c57f38008136202ba7b38e3154ac87be4eefb68 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 25 Jun 2025 16:37:41 +0200 Subject: Fix feeds encoded in UTF-16LE (#7691) * Fix feeds encoded in UTF-16LE Fix https://github.com/FreshRSS/FreshRSS/issues/7690 https://github.com/FreshRSS/simplepie/pull/40 The final character `>` of a feed is encoded as `3E00` in UTF-16LE, so calling `trim()` was removing the `\x00`, breaking the multibyte encoding and making the feed invalid. Upstream PR https://github.com/simplepie/simplepie/pull/916 * Trim body for all paths https://github.com/FreshRSS/simplepie/pull/42 https://github.com/simplepie/simplepie/pull/917 Slight refactor of https://github.com/simplepie/simplepie/pull/916 (https://github.com/FreshRSS/simplepie/pull/40) to cover all paths. Missing paths included the fsock method without gzip (e.g. deflate or plain). --- lib/composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/composer.json') diff --git a/lib/composer.json b/lib/composer.json index a647f4c87..197ed3a2d 100644 --- a/lib/composer.json +++ b/lib/composer.json @@ -14,7 +14,7 @@ "marienfressinaud/lib_opml": "0.5.1", "phpgt/cssxpath": "v1.3.0", "phpmailer/phpmailer": "6.10.0", - "simplepie/simplepie": "dev-freshrss#f644950102ef4d4ab6e811db6ee9416d7151484a" + "simplepie/simplepie": "dev-freshrss#2f0417355a702c678c237eac5ffc273863301a80" }, "config": { "sort-packages": true, -- cgit v1.2.3