mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 18:41:29 +00:00
tag_is_valid: simplify code
This commit is contained in:
@@ -1753,11 +1753,8 @@
|
||||
}
|
||||
|
||||
function tag_is_valid($tag) {
|
||||
if ($tag == '') return false;
|
||||
if (is_numeric($tag)) return false;
|
||||
if (mb_strlen($tag) > 250) return false;
|
||||
|
||||
if (!$tag) return false;
|
||||
if (!$tag || is_numeric($tag) || mb_strlen($tag) > 250)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user