how embarrassing
This commit is contained in:
parent
34c26e49de
commit
5bdbd4f10b
|
@ -51,8 +51,7 @@ sub ValidateParams {
|
|||
sub GetPaste {
|
||||
my $id = shift; $id = lc $id;
|
||||
return undef unless $id =~ /^[a-f0-9]*$/;
|
||||
#This got a bit messy, required because otherwise there are scenarios where an expired paste may still be viewed
|
||||
my $paste schema->resultset('Paste')->single({ id => $id }) or return undef;
|
||||
return schema->resultset('Paste')->single({ id => $id }) || undef;
|
||||
}
|
||||
sub StorePaste {
|
||||
my $params = shift;
|
||||
|
|
Loading…
Reference in New Issue