Commit 2764826d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

/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)
parent 243302b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -657,7 +657,7 @@ sub journey_details {

	$self->param( journey_id => $journey_id );

	if ( not($journey_id) ) {
	if ( not( $journey_id and $journey_id =~ m{ ^ \d+ $ }x ) ) {
		$self->render(
			'journey',
			error   => 'notfound',