From 85d067e837ef743e67d2fa84e254c08b56d090a4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Dec 2015 15:14:01 +0300 Subject: tag_is_valid: check numeric tags properly --- include/functions2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions2.php b/include/functions2.php index 1a0cb6d22..63b11717e 100755 --- a/include/functions2.php +++ b/include/functions2.php @@ -1156,7 +1156,7 @@ function tag_is_valid($tag) { if ($tag == '') return false; - if (preg_match("/^[0-9]*$/", $tag)) return false; + if (is_numeric($tag)) return false; if (mb_strlen($tag) > 250) return false; if (!$tag) return false; -- cgit v1.2.3