Skip to content
Browse files

sort keys before joining url params

  • Loading branch information...
1 parent cd23422 commit c09ccc7aad587c8dc84e7546068d94d28717d59a @xsawyerx xsawyerx committed Jan 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/MetaCPAN/API.pm
View
4 lib/MetaCPAN/API.pm
@@ -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.
Something went wrong with that request. Please try again.