how embarrassing
This commit is contained in:
parent
34c26e49de
commit
5bdbd4f10b
|
@ -51,8 +51,7 @@ sub ValidateParams {
|
||||||
sub GetPaste {
|
sub GetPaste {
|
||||||
my $id = shift; $id = lc $id;
|
my $id = shift; $id = lc $id;
|
||||||
return undef unless $id =~ /^[a-f0-9]*$/;
|
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
|
return schema->resultset('Paste')->single({ id => $id }) || undef;
|
||||||
my $paste schema->resultset('Paste')->single({ id => $id }) or return undef;
|
|
||||||
}
|
}
|
||||||
sub StorePaste {
|
sub StorePaste {
|
||||||
my $params = shift;
|
my $params = shift;
|
||||||
|
|
Loading…
Reference in New Issue