summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-08-15 18:45:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-08-15 18:45:57 +0200
commitaff77e7ef149f70912e88ce7566fe77726d65d68 (patch)
treeed3c3bafd4a2b4ba0a4ee599337bfc39f70f4876
parentf5cc77adc92b185e1461b736d4d05f94a08bda8f (diff)
Fix ?mode=multi removal
-rw-r--r--cgi/index.pl7
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;