From eedefbd9fedbb14d3387b6b036afa64f75de4610 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 22 Feb 2026 14:24:59 +0100 Subject: [PATCH] Non-strict OPML export fix https://github.com/FreshRSS/FreshRSS/issues/8520 --- app/Services/ImportService.php | 2 +- app/views/helpers/export/opml.phtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 22865f873..910d10613 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -40,7 +40,7 @@ class FreshRSS_Import_Service { $this->lastStatus = true; $opml_array = []; try { - $libopml = new \marienfressinaud\LibOpml\LibOpml(false); + $libopml = new \marienfressinaud\LibOpml\LibOpml(strict: false); /** @var array{body:array>} $opml_array */ $opml_array = $libopml->parseString($opml_file); } catch (\marienfressinaud\LibOpml\Exception $e) { diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml index cc89edb49..f2e5e1094 100644 --- a/app/views/helpers/export/opml.phtml +++ b/app/views/helpers/export/opml.phtml @@ -182,7 +182,7 @@ if (!empty($this->feeds)) { $opml_array['body'] = array_merge($opml_array['body'], feedsToOutlines($this->feeds, $this->excludeMutedFeeds)); } -$libopml = new \marienfressinaud\LibOpml\LibOpml(true); +$libopml = new \marienfressinaud\LibOpml\LibOpml(strict: false); $opml = $libopml->render($opml_array); /** @var string $opml */ echo $opml;