Skip to content

Commit

Permalink
Limit realm characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 27, 2023
1 parent 583009d commit ba17e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cavil/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sub load_ignored_files ($db) {
}

sub obs_ssh_auth ($challenge, $user, $key) {
die "Unexpected OBS challenge: $challenge" unless $challenge =~ /realm="([^"]+)".*headers="\(created\)"/;
die "Unexpected OBS challenge: $challenge" unless $challenge =~ /realm="([\w ]+)".*headers="\(created\)"/;
my $realm = $1;

my $now = time;
Expand Down

0 comments on commit ba17e81

Please sign in to comment.