mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 09:42:38 +00:00
Fixing IPRange validation for PUT on entities.
This commit is contained in:
@@ -181,7 +181,7 @@ namespace OpenWifi{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(RawObject->has("sourceIP")) {
|
if(RawObject->has("sourceIP")) {
|
||||||
if(!NewEntity.sourceIP.empty() && CIDR::ValidateIpRanges(NewEntity.sourceIP)) {
|
if(!NewEntity.sourceIP.empty() && !CIDR::ValidateIpRanges(NewEntity.sourceIP)) {
|
||||||
BadRequest(RESTAPI::Errors::InvalidIPRanges);
|
BadRequest(RESTAPI::Errors::InvalidIPRanges);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"configuration" :
|
"configuration" :
|
||||||
{ "uuid": "1" }
|
{ "uuid": 1 }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user