Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull request: Fix for addPostValue:forKey: of ASIFormDataRequest #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Pull request: Fix for addPostValue:forKey: of ASIFormDataRequest #122

wants to merge 1 commit into from

Conversation

akisute
Copy link

@akisute akisute commented Dec 29, 2010

Hi pokeb,
I found that the addPostValue:forKey: method of ASIFormDataRequest is vulnerable when the given key or value is nil. Validating every arguments before passing them to this method was a bit annoying for me so I made this patch. Hope you find this useful :)

P.S. Thanks for this great boon for all iOS/Mac OS developers!

- Do nothing if the given key is nil
- Treat the value as a blank string if the given value is nil as its string description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant