diff --git a/src/Socialbox/Managers/EncryptionChannelManager.php b/src/Socialbox/Managers/EncryptionChannelManager.php index 31a3444..004f4ec 100644 --- a/src/Socialbox/Managers/EncryptionChannelManager.php +++ b/src/Socialbox/Managers/EncryptionChannelManager.php @@ -30,6 +30,11 @@ */ public static function channelUuidExists(string $channelUuid): bool { + if(!Validator::validateUuid($channelUuid)) + { + throw new InvalidArgumentException('Invalid channel UUID V4'); + } + try { $stmt = Database::getConnection()->prepare('SELECT COUNT(*) FROM encryption_channels WHERE uuid=:uuid');