From 85d067e837ef743e67d2fa84e254c08b56d090a4 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@madoka.volgo-balt.ru>
Date: Wed, 30 Dec 2015 15:14:01 +0300
Subject: [PATCH] tag_is_valid: check numeric tags properly

---
 include/functions2.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.39.5