Skip to content

A free, self-hostable news aggregator…

TXT import compatibility HTML comments (#8837)

Alexandre Alapetite66568f0283ed
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) {