From: Andrew Dolgov Date: Mon, 1 Jun 2009 07:29:13 +0000 (+0400) Subject: tag_is_valid: add length checking X-Git-Tag: 1.3.4~59 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=41f7498af37a00756559455b20714379bca687e8;p=tt-rss.git tag_is_valid: add length checking --- diff --git a/functions.php b/functions.php index a1c8315f..8f6ae890 100644 --- a/functions.php +++ b/functions.php @@ -4442,6 +4442,7 @@ function tag_is_valid($tag) { if ($tag == '') return false; if (preg_match("/^[0-9]*$/", $tag)) return false; + if (mb_strlen($tag) > 250) return false; if (function_exists('iconv')) { $tag = iconv("utf-8", "utf-8", $tag);