From: Andrew Dolgov Date: Wed, 30 Dec 2015 12:14:01 +0000 (+0300) Subject: tag_is_valid: check numeric tags properly X-Git-Tag: 16.3~66 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=85d067e837ef743e67d2fa84e254c08b56d090a4;p=tt-rss.git tag_is_valid: check numeric tags properly --- diff --git a/include/functions2.php b/include/functions2.php index 1a0cb6d2..63b11717 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;