From 728a3c4b01991c7f8635a1d920365060ddd179ea Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 24 Dec 2016 14:07:03 -0700 Subject: [PATCH] Update functions.php is_uuid make it more generic so it doesn't matter which uuid type it is whether 1,2,3 or 4. --- resources/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 81d887c5a7..bbf5cf78e4 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); } }