Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
501ae037
Commit
501ae037
authored
Mar 28, 2009
by
Leigh B. Stoller
Browse files
Bug fix for hrn check; allow dashes.
parent
40d52d9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCredential.pm.in
View file @
501ae037
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment