Permalink
Browse files

api_sig: must not include the format and callback

  • Loading branch information...
1 parent fb19e7e commit b80703e0e186ffd0b3dea19ad9e412c18faeb001 @st3vil committed Nov 24, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Net/LastFMAPI.pm
@@ -314,7 +314,8 @@ sub talk_authorisation {
sub sign {
my $params = shift;
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);
$params->{api_sig} = $hash;
}

0 comments on commit b80703e

Please sign in to comment.