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
changes/38/34738/3
Flaviu Mates 6 years ago
parent 4b1d697e78
commit 54935452e8

@ -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{

Loading…
Cancel
Save