rsieiro / RSOAuthEngine

ARC based OAuth engine for MKNetworkKit
http://rodrigo.sharpcube.com
150 stars 33 forks source link

fixed a bug that would incorrectly decode strings with %2B (+) #18

Closed smazurov closed 11 years ago

smazurov commented 11 years ago

The upstream library that implements urlDecodedString currently has a bug. It decodes the url first and then replaces "+" (plus) with a " "(space). This interferes with strings containing %2B (+ in hex form). Replacing it with stringByReplacingPercentEscapesUsingEncoding: until underlying library fixes the implementation.

rsieiro commented 11 years ago

Thanks again. I think that by using stringByReplacingPercentEscapesUsingEncoding we don't need the old category method anymore, so this should be considered a permanent replacement.