mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 16:55:57 +00:00
tag_is_valid: add length checking
This commit is contained in:
@@ -4442,6 +4442,7 @@
|
|||||||
function tag_is_valid($tag) {
|
function tag_is_valid($tag) {
|
||||||
if ($tag == '') return false;
|
if ($tag == '') return false;
|
||||||
if (preg_match("/^[0-9]*$/", $tag)) return false;
|
if (preg_match("/^[0-9]*$/", $tag)) return false;
|
||||||
|
if (mb_strlen($tag) > 250) return false;
|
||||||
|
|
||||||
if (function_exists('iconv')) {
|
if (function_exists('iconv')) {
|
||||||
$tag = iconv("utf-8", "utf-8", $tag);
|
$tag = iconv("utf-8", "utf-8", $tag);
|
||||||
|
|||||||
Reference in New Issue
Block a user