Permalink
Browse files

sort keys before joining url params

  • Loading branch information...
xsawyerx committed Jan 13, 2012
1 parent cd23422 commit c09ccc7aad587c8dc84e7546068d94d28717d59a
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/MetaCPAN/API.pm
View
@@ -118,7 +118,9 @@ sub _build_extra_params {
or croak 'Incorrect number of params, must be key/value';
my %extra = @_;
- my $extra = join '&', map { "$_=" . uri_escape($extra{$_}) } keys %extra;
+ my $extra = join '&', map {
+ "$_=" . uri_escape( $extra{$_} )
+ } sort keys %extra;
return $extra;
}

0 comments on commit c09ccc7

Please sign in to comment.