chiark / gitweb /
Strip "none" values when replicating our url
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 13 Aug 2009 01:47:17 +0000 (02:47 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 13 Aug 2009 01:47:17 +0000 (02:47 +0100)
yarrg/web/lookup

index e062e60..9c00a65 100644 (file)
@@ -56,7 +56,9 @@ my %queryqf;
 foreach my $var (keys %ARGS) {
        next unless $var =~
                m/^(?:routestring|islandid\d|archipelago\d|debug)$/;
-       $queryqf{$var}= $ARGS{$var};
+       my $val= $ARGS{$var};
+       next if $val eq 'none';
+       $queryqf{$var}= $val;
 }
 
 my $uri= URI->new($m->current_comp()->name());