/journey/🆔 verify that id is numeric
As a side effect, this turns the response of GET /journey/edit (which should never happen in the first place) from an exception into a 404 error (#36)
This commit is contained in:
parent
243302b9bb
commit
2764826da0
1 changed files with 1 additions and 1 deletions
|
@ -657,7 +657,7 @@ sub journey_details {
|
||||||
|
|
||||||
$self->param( journey_id => $journey_id );
|
$self->param( journey_id => $journey_id );
|
||||||
|
|
||||||
if ( not($journey_id) ) {
|
if ( not( $journey_id and $journey_id =~ m{ ^ \d+ $ }x ) ) {
|
||||||
$self->render(
|
$self->render(
|
||||||
'journey',
|
'journey',
|
||||||
error => 'notfound',
|
error => 'notfound',
|
||||||
|
|
Loading…
Reference in a new issue