Non-strict OPML export

fix https://github.com/FreshRSS/FreshRSS/issues/8520
This commit is contained in:
Alexandre Alapetite committed 2026-02-22 14:24:59 +01:00
1 parent ab3a9c107c
commit eedefbd9fe
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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<array<mixed>>} $opml_array */
$opml_array = $libopml->parseString($opml_file);
} catch (\marienfressinaud\LibOpml\Exception $e) {
+1 -1
View File
@@ -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;