From 18d81950277a658b93675aa7cf9db1da23a13a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Tue, 8 Dec 2020 10:20:25 +0000 Subject: [PATCH] fix: is_valid_remote_user: extend allowed size from 32 to 128 --- lib/perl/OVH/Bastion.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/perl/OVH/Bastion.pm b/lib/perl/OVH/Bastion.pm index 0a9377f..bb17d48 100644 --- a/lib/perl/OVH/Bastion.pm +++ b/lib/perl/OVH/Bastion.pm @@ -568,7 +568,7 @@ sub is_valid_port { sub is_valid_remote_user { my %params = @_; my $user = $params{'user'}; - if ($user =~ /^([a-zA-Z0-9._!-]{1,32})$/) { + if ($user =~ /^([a-zA-Z0-9._!-]{1,128})$/) { return R('OK', value => $1); } return R('ERR_INVALID_PARAMETER', msg => "Specified user doesn't seem to be valid");