mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
tag_is_valid: check numeric tags properly
This commit is contained in:
@@ -1156,7 +1156,7 @@
|
||||
|
||||
function tag_is_valid($tag) {
|
||||
if ($tag == '') return false;
|
||||
if (preg_match("/^[0-9]*$/", $tag)) return false;
|
||||
if (is_numeric($tag)) return false;
|
||||
if (mb_strlen($tag) > 250) return false;
|
||||
|
||||
if (!$tag) return false;
|
||||
|
||||
Reference in New Issue
Block a user