From f414d866e52c4b5dd8b6e2292c88004ef66e2f0f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 24 Dec 2016 14:11:15 -0700 Subject: [PATCH] Update functions.php Make is_uuid more generic. --- resources/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 79c66059cd..1e146bbe71 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -143,8 +143,7 @@ if (!function_exists('is_uuid')) { function is_uuid($uuid) { - //uuid version 4 - $regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i'; + $regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i'; return preg_match($regex, $uuid); } }