Skip to content
Permalink
Browse files
Ensures password length validation cannot break if parameters undefined.
  • Loading branch information
drn05r committed Jan 12, 2022
1 parent ab952aa commit 0904940a1d68f3e92317bb3bae1e33888c777b36
Showing 1 changed file with 1 addition and 1 deletion.
@@ -5,7 +5,7 @@
my( %args ) = @_;
my( $repo, $field, $user, $value, $problems ) = @args{qw( repository field dataobj value problems )};

return unless $user->isa( "EPrints::DataObj::User" ) && $field->type eq "secret";
return unless defined $user && $user->isa( "EPrints::DataObj::User" ) && $field->type eq "secret";

my $password;
foreach my $key ( keys %{ $repo->{query}->{param} } )

0 comments on commit 0904940

Please sign in to comment.