Commit 501ae037 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Bug fix for hrn check; allow dashes.

parent 40d52d9e
......@@ -249,7 +249,7 @@ sub CreateFromSigned($$;$)
print STDERR "Invalid target_uuid in credential\n";
return undef;
}
if (!($target_certificate->hrn() =~ /^[\w\.]+$/)) {
if (!($target_certificate->hrn() =~ /^[-\w\.]+$/)) {
print STDERR "Invalid hrn in credential\n";
return undef;
}
......@@ -268,7 +268,7 @@ sub CreateFromSigned($$;$)
print STDERR "Invalid target_uuid in credential\n";
return undef;
}
if (!($owner_certificate->hrn() =~ /^[\w\.]+$/)) {
if (!($owner_certificate->hrn() =~ /^[-\w\.]+$/)) {
print STDERR "Invalid hrn in credential\n";
return undef;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment