]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Drop the href() params which keys are not in %mapping
[Gitweb] / gitweb.perl
index 50085bb18e11c94eb862e27206cbc638d295d09f1d5bafb5ccce06822318bda6..21fb28e5751d7669fbcae89c3e9ed0725e32184d4de2a041395b9981d23170c8 100755 (executable)
@@ -285,7 +285,7 @@ sub href(%) {
        my $href = "$my_uri?";
        $href .= esc_param( join(";",
                map {
-                       "$mapping{$_}=$params{$_}" if defined $params{$_}
+                       defined $params{$_} ? "$mapping{$_}=$params{$_}" : ()
                } keys %params
        ) );
 
This page took 0.198478 seconds and 4 git commands to generate.