Skip to content

Commit

Permalink
api_sig: must not include the format and callback
Browse files Browse the repository at this point in the history
  • Loading branch information
st3vil committed Nov 24, 2011
1 parent fb19e7e commit b80703e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Net/LastFMAPI.pm
Expand Up @@ -314,7 +314,8 @@ sub talk_authorisation {
sub sign { sub sign {
my $params = shift; my $params = shift;
return unless $methods->{$params->{method}}->{signed}; return unless $methods->{$params->{method}}->{signed};
my $jumble = join "", map { $_ => $params->{$_} } sort keys %$params; my $jumble = join "", map { $_ => $params->{$_} }
grep { !($_ eq "format" || $_ eq "callback") } sort keys %$params;
my $hash = md5_hex($jumble.$secret); my $hash = md5_hex($jumble.$secret);
$params->{api_sig} = $hash; $params->{api_sig} = $hash;
} }
Expand Down

0 comments on commit b80703e

Please sign in to comment.