diff options
| author | Andrew Dolgov <noreply@madoka.volgo-balt.ru> | 2015-12-30 15:14:01 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@madoka.volgo-balt.ru> | 2015-12-30 15:15:18 +0300 |
| commit | 85d067e837ef743e67d2fa84e254c08b56d090a4 (patch) | |
| tree | 41baf966ca0ece1c888d0c52592963453052e37a /include | |
| parent | 9842b51c711eb33184105b385b4c78446387983c (diff) | |
tag_is_valid: check numeric tags properly
Diffstat (limited to 'include')
| -rwxr-xr-x | include/functions2.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |