Commit 9232cdaa authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Return HTTP 404 for unknown journeys

parent 2764826d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -660,6 +660,7 @@ sub journey_details {
	if ( not( $journey_id and $journey_id =~ m{ ^ \d+ $ }x ) ) {
		$self->render(
			'journey',
			status  => 404,
			error   => 'notfound',
			journey => {}
		);
@@ -683,6 +684,7 @@ sub journey_details {
	else {
		$self->render(
			'journey',
			status  => 404,
			error   => 'notfound',
			journey => {}
		);
@@ -743,6 +745,7 @@ sub edit_journey {
	if ( not( $journey_id =~ m{ ^ \d+ $ }x ) ) {
		$self->render(
			'edit_journey',
			status  => 404,
			error   => 'notfound',
			journey => {}
		);
@@ -759,6 +762,7 @@ sub edit_journey {
	if ( not $journey ) {
		$self->render(
			'edit_journey',
			status  => 404,
			error   => 'notfound',
			journey => {}
		);