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