From 54935452e8be3aea25434f3bde812861b2cf9934 Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Tue, 29 Oct 2019 16:28:09 +0200 Subject: [PATCH] TT#69370 - Remove validation of SIP URI type for banned users id's * Removed restriction that would cause an error when trying to get/delete a bannedusers entry that had a different format than 'user@domain.com' Change-Id: Ie3a5fa80b888d97bf4a34a8ad9a65514699ef77e --- lib/NGCP/Panel/Role/API/BannedUsers.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/NGCP/Panel/Role/API/BannedUsers.pm b/lib/NGCP/Panel/Role/API/BannedUsers.pm index 377f2fadd7..05ef2f7535 100644 --- a/lib/NGCP/Panel/Role/API/BannedUsers.pm +++ b/lib/NGCP/Panel/Role/API/BannedUsers.pm @@ -24,9 +24,7 @@ sub get_item_id{ sub valid_id { my ($self, $c, $id) = @_; - return 1 if $id=~/^[^@]+@[^@]+$/; - $self->error($c, HTTP_BAD_REQUEST, "Invalid id in request URI. Should be an ip address."); - return; + return 1; } sub item_by_id{