From 66568f0283edd9f5e1db7a70282be0a87bc20771 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 15 May 2026 12:10:55 +0200 Subject: [PATCH] TXT import compatibility HTML comments (#8837) Discard lines starting with `<` for e.g. HTML/XML comments, tags Compatibility with TXT format of https://atlasflux.saynete.net Follow-up of https://github.com/FreshRSS/FreshRSS/pull/8818 --- app/Controllers/importExportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/importExportController.php b/app/Controllers/importExportController.php index 51fc80db2..8a64ef575 100644 --- a/app/Controllers/importExportController.php +++ b/app/Controllers/importExportController.php @@ -254,7 +254,7 @@ class FreshRSS_importExport_Controller extends FreshRSS_ActionController { $outlines = ''; foreach (preg_split('/\R/', $contents) ?: [] as $line) { $url = trim($line); - if ($url === '' || str_starts_with($url, '#')) { + if ($url === '' || str_starts_with($url, '#') || str_starts_with($url, '<')) { continue; } if (filter_var($url, FILTER_VALIDATE_URL) === false) {