From: Andrew Dolgov Date: Sun, 11 Feb 2018 07:24:24 +0000 (+0300) Subject: add a workaround to support numeric tags X-Git-Tag: 18.8~68 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5edf4b73a439102ab18494375ee4ce4ab93c1b2b;p=tt-rss.git add a workaround to support numeric tags --- diff --git a/classes/rssutils.php b/classes/rssutils.php index 2a54de0e..d125a503 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -675,9 +675,13 @@ class RSSUtils { $entry_tags = array_unique($additional_tags); - for ($i = 0; $i < count($entry_tags); $i++) + for ($i = 0; $i < count($entry_tags); $i++) { $entry_tags[$i] = mb_strtolower($entry_tags[$i], 'utf-8'); + // we don't support numeric tags, let's prefix them + if (is_numeric($entry_tags[$i])) $entry_tags[$i] = 't:' . $entry_tags[$i]; + } + _debug("tags found: " . join(",", $entry_tags), $debug_enabled); _debug("done collecting data.", $debug_enabled);