diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-08-15 18:45:57 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-08-15 18:45:57 +0200 |
commit | aff77e7ef149f70912e88ce7566fe77726d65d68 (patch) | |
tree | ed3c3bafd4a2b4ba0a4ee599337bfc39f70f4876 /cgi | |
parent | f5cc77adc92b185e1461b736d4d05f94a08bda8f (diff) |
Fix ?mode=multi removal
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/index.pl | 7 |
1 files 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; |