From c987c51bff913f38a55fc3f3e6054bd7ac39e0f3 Mon Sep 17 00:00:00 2001 From: Michael Baltaks Date: Tue, 22 Oct 2013 22:25:26 +1100 Subject: [PATCH] Fix respondsToSelector call to test for the selector that is called. --- Classes/Categories/NSDictionary+QueryString.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Categories/NSDictionary+QueryString.m b/Classes/Categories/NSDictionary+QueryString.m index d67367e..d9cbbf7 100644 --- a/Classes/Categories/NSDictionary+QueryString.m +++ b/Classes/Categories/NSDictionary+QueryString.m @@ -69,7 +69,7 @@ - (void)formEncodeObject:(id)object usingKey:(NSString *)key subKey:(NSString *) objectKey = [[key description] LR_stringByEscapingForURLQuery]; } - if ([object respondsToSelector:@selector(stringByEscapingForURLQuery)]) { + if ([object respondsToSelector:@selector(LR_stringByEscapingForURLQuery)]) { [array addObject:[NSString stringWithFormat:@"%@=%@", objectKey, [object LR_stringByEscapingForURLQuery]]]; } else if ([object isKindOfClass:[self class]]) {