From 1c7c1016f4a5147003ed1c438b8a386a63a53cab Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 4 Sep 2023 10:09:37 +0200 Subject: Fix JSON export/import (#5626) * Fix import with empty content fix https://github.com/FreshRSS/FreshRSS/issues/5622 Cherry picks on https://github.com/FreshRSS/FreshRSS/pull/5584 * Fix export of tags / labels Article-defined tags were wrongly exported as user-defined labels. * Fix export of tags / labels Article-defined tags were wrongly exported as user-defined labels. * Fix bug with many labels * Better typing * Comments --- lib/lib_rss.php | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 9d995c6d6..356d5bc0d 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -330,7 +330,6 @@ function customSimplePie(array $attributes = array()): SimplePie { return $simplePie; } -/** @param string $data */ function sanitizeHTML(string $data, string $base = '', ?int $maxLength = null): string { if ($data === '' || ($maxLength !== null && $maxLength <= 0)) { return ''; -- cgit v1.2.3