Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Drop the href() params which keys are not in %mapping
[gitweb.git]
/
gitweb
/
gitweb.perl
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 1c8a2ebe1509a89e20a4794767d5f16796f20492..43b1600486c4c71c5004e42f918381110fec5224 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-285,7
+285,7
@@
(%)
my $href = "$my_uri?";
$href .= esc_param( join(";",
map {
- "$mapping{$_}=$params{$_}" if defined $params{$_}
+ defined $params{$_} ? "$mapping{$_}=$params{$_}" : ()
} keys %params
) );