Skip to content

Commit

Permalink
added special case for handling of missing = between the project keyw…
Browse files Browse the repository at this point in the history
…ord and the project id
  • Loading branch information
Tobias Paczian committed Jul 18, 2012
1 parent 510c2c2 commit 0a3902e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/MGRAST/cgi/linkin.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ sub main {
}

} else {
my @params = $cgi->keywords;
foreach my $p (@params) {
if ($p =~ /^project(\d+)$/) {
print $cgi->redirect('metagenomics.cgi?page=MetagenomeProject&project='.$1);
}
}

$error = '<h2>Invalid link</h2><p>You linked to MG-RAST without passing an appropriate id.<br></p>';
}

Expand Down

0 comments on commit 0a3902e

Please sign in to comment.