Refactor PeerInformationManager to enhance UUID validation by throwing an exception for invalid UUID V4 inputs
https://github.com/nosial/Socialbox-PHP/issues/61
This commit is contained in:
parent
340f2a3c75
commit
20df727b83
1 changed files with 4 additions and 0 deletions
|
@ -248,6 +248,10 @@
|
||||||
{
|
{
|
||||||
$peerUuid = $peerUuid->getUuid();
|
$peerUuid = $peerUuid->getUuid();
|
||||||
}
|
}
|
||||||
|
elseif(!Validator::validateUuid($peerUuid))
|
||||||
|
{
|
||||||
|
throw new InvalidArgumentException('The given internal peer UUID is not a valid UUID V4');
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue