]> git.wh0rd.org - tt-rss.git/commitdiff
add a workaround to support numeric tags
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 11 Feb 2018 07:24:24 +0000 (10:24 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 11 Feb 2018 07:24:24 +0000 (10:24 +0300)
classes/rssutils.php

index 2a54de0eb5db34067dd20fb17c2618dd23e5e262..d125a5032f4c4a5713de200a8da1903ccad29167 100755 (executable)
@@ -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);