surjit / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

bug in OAToken.m , token encoded. #134

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There is a little bug in OAToken in the initWithHTTPResponseBody:body
method, the token are encoded. 

As it say in http://oauth.net/core/1.0/#response_parameters

SO de must decode it before affect to the attributs.

it become : 

        self.key = [[elements objectAtIndex:1] URLDecodedString] ;

and         
    self.secret = [[elements objectAtIndex:1] URLDecodedString];

don't forget the import NSString+URLEncoding.h.

Original issue reported on code.google.com by mickael....@gmail.com on 14 Oct 2009 at 11:05