{"action":"created","issue":{"url":"https://api.github.com/repos/embedly/embedly-ios/issues/3","labels_url":"https://api.github.com/repos/embedly/embedly-ios/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/embedly/embedly-ios/issues/3/comments","events_url":"https://api.github.com/repos/embedly/embedly-ios/issues/3/events","html_url":"https://github.com/embedly/embedly-ios/issues/3","id":40996386,"number":3,"title":"Incorrectly escaping URL's","user":{"login":"urbanappetite","id":162989,"avatar_url":"https://avatars.githubusercontent.com/u/162989?v=3","gravatar_id":"","url":"https://api.github.com/users/urbanappetite","html_url":"https://github.com/urbanappetite","followers_url":"https://api.github.com/users/urbanappetite/followers","following_url":"https://api.github.com/users/urbanappetite/following{/other_user}","gists_url":"https://api.github.com/users/urbanappetite/gists{/gist_id}","starred_url":"https://api.github.com/users/urbanappetite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbanappetite/subscriptions","organizations_url":"https://api.github.com/users/urbanappetite/orgs","repos_url":"https://api.github.com/users/urbanappetite/repos","events_url":"https://api.github.com/users/urbanappetite/events{/privacy}","received_events_url":"https://api.github.com/users/urbanappetite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-08-24T05:05:35Z","updated_at":"2016-01-11T04:05:16Z","closed_at":null,"body":"Hi,\r\n\r\nThe following line of code doesn't escape all characters in URL's properly so we were having issues getting valid Embedly responses (often for links to Facebook images).\r\n\r\nNSString *paramValue = [params[key] stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];\r\n\r\nThe following should be used instead:\r\n\r\n (NSString *) CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)urlString, NULL, (CFStringRef)@\";/?:@&=$+{}<>,\", CFStringConvertNSStringEncodingToEncoding(NSASCIIStringEncoding)));\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/embedly/embedly-ios/issues/comments/170426782","html_url":"https://github.com/embedly/embedly-ios/issues/3#issuecomment-170426782","issue_url":"https://api.github.com/repos/embedly/embedly-ios/issues/3","id":170426782,"user":{"login":"urbanappetite","id":162989,"avatar_url":"https://avatars.githubusercontent.com/u/162989?v=3","gravatar_id":"","url":"https://api.github.com/users/urbanappetite","html_url":"https://github.com/urbanappetite","followers_url":"https://api.github.com/users/urbanappetite/followers","following_url":"https://api.github.com/users/urbanappetite/following{/other_user}","gists_url":"https://api.github.com/users/urbanappetite/gists{/gist_id}","starred_url":"https://api.github.com/users/urbanappetite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbanappetite/subscriptions","organizations_url":"https://api.github.com/users/urbanappetite/orgs","repos_url":"https://api.github.com/users/urbanappetite/repos","events_url":"https://api.github.com/users/urbanappetite/events{/privacy}","received_events_url":"https://api.github.com/users/urbanappetite/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T04:05:16Z","updated_at":"2016-01-11T04:05:16Z","body":"Check out http://stackoverflow.com/questions/3423545/objective-c-iphone-percent-encode-a-string\r\n\r\nstringByAddingPercentEncodingWithAllowedCharacters is the way to go as of iOS 7"}}