From aff77e7ef149f70912e88ce7566fe77726d65d68 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 15 Aug 2012 18:45:57 +0200 Subject: Fix ?mode=multi removal --- cgi/index.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cgi/index.pl b/cgi/index.pl index 9fc4961..71c3def 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -109,13 +109,14 @@ get '/_redirect' => sub { $params->remove('station'); $params->remove('via'); + if ($params->param('mode') and $params->param('mode') eq 'multi') { + $params->remove('mode'); + } + for my $param (qw(platforms)) { if ( not $params->param($param) ) { $params->remove($param); } - elsif ( $param eq 'mode' and $params->param($param) eq 'multi' ) { - $params->remove($param); - } } $params = $params->to_string; -- cgit v1.2.3