diff options
author | Andrew Dolgov <[email protected]> | 2009-06-01 11:29:13 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-06-01 11:29:13 +0400 |
commit | 41f7498af37a00756559455b20714379bca687e8 (patch) | |
tree | 0a6a5a1267b512c33d0db71219b79c406c8bb306 /functions.php | |
parent | 5e63d5472492d53a897e53d57231233b4f53ad62 (diff) |
tag_is_valid: add length checking
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.php b/functions.php index a1c8315f7..8f6ae8900 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); |