X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FCommon.pm;h=d72e0cb967892c6921b80944f64d5d962afc9423;hp=cd43338a9c3719db39e9aceda92e68045f300177;hb=3d40b6487a2276c403022a1534eb943a5374ebc5;hpb=e6c0be9c884c678d048a9a9a569dc1a3f6f83f34 diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index cd43338..d72e0cb 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -128,7 +128,8 @@ sub get_query_string { my $first = 1; my $str = ""; - while (my ($key, $value) = each %$param) { + for my $key (sort keys %$param) { + my $value = $param->{$key}; next unless defined($value); next if (defined($defparam->{$key}) && $value == $defparam->{$key});