mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-10 01:15:15 +08:00
Merge pull request #81 from ovh/remote_user_name_fix
fix: is_valid_remote_user: extend allowed size from 32 to 128
This commit is contained in:
commit
9f745013b2
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue