diff --git a/src/Socialbox/Managers/ContactManager.php b/src/Socialbox/Managers/ContactManager.php index 281f8a4..2496689 100644 --- a/src/Socialbox/Managers/ContactManager.php +++ b/src/Socialbox/Managers/ContactManager.php @@ -330,6 +330,11 @@ throw new InvalidArgumentException('The limit cannot exceed a value of ' . Configuration::getPoliciesConfiguration()->getGetContactsLimit()); } + if(!Validator::validateUuid($peerUuid)) + { + throw new InvalidArgumentException('The given peer UUID is not a valid UUID V4'); + } + $contacts = []; try