From 41f7498af37a00756559455b20714379bca687e8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Jun 2009 11:29:13 +0400 Subject: [PATCH] tag_is_valid: add length checking --- functions.php | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5