Throw 404 if you request List page that doesn't exist
This commit is contained in:
parent
75418bf1aa
commit
8473f2f2d9
|
@ -50,6 +50,8 @@ group {
|
||||||
my $last_page = $c->thread->get_last_page();
|
my $last_page = $c->thread->get_last_page();
|
||||||
my $threads = $c->thread->get_threads_by_page($this_page);
|
my $threads = $c->thread->get_threads_by_page($this_page);
|
||||||
|
|
||||||
|
$c->stash(status => 404) unless $threads->[0];
|
||||||
|
|
||||||
$c->stash(
|
$c->stash(
|
||||||
threads => $threads,
|
threads => $threads,
|
||||||
this_page => $this_page,
|
this_page => $this_page,
|
||||||
|
|
|
@ -28,3 +28,4 @@ Run the tests locally (against development environment)
|
||||||
1. Return the last remark with remark form
|
1. Return the last remark with remark form
|
||||||
1. Marked some items for clean up with comments
|
1. Marked some items for clean up with comments
|
||||||
1. Method names may need to be shortened
|
1. Method names may need to be shortened
|
||||||
|
1. Probably throw a 404 if you request a remark page that doesn't exist
|
||||||
|
|
Loading…
Reference in New Issue
Block a user