Commit 204b4fee authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix up check for illegal project name, so that we don't die with an

undefined error.
parent a82fafb8
......@@ -338,9 +338,9 @@ sub GetHoldingProject($$)
$project_id = $subauth;
$project_id =~ s/\./-/g;
if (!Project->ValidPID($project_id)) {
if (! (defined($project_urn) && Project->ValidPID($project_id))) {
return GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
"Not a valid local project name for $project_urn");
"Not a valid local project name for $domainsubauth");
else {
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