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

Invalid Cookie header crashes get_cookie #397

Merged
merged 1 commit into from Nov 14, 2011
Merged

Conversation

swies
Copy link
Contributor

@swies swies commented Nov 6, 2011

A broken Cookie header, say "Cookie: /=exception;", causes self.request.cookies to be None. get_cookie() just tests this with 'in' right now, which causes a crash when self.request.cookies is None. The fix is just checking for the None case first in get_cookie().

bdarnell added a commit that referenced this pull request Nov 14, 2011
Invalid Cookie header crashes get_cookie
@bdarnell bdarnell merged commit 48459e3 into tornadoweb:master Nov 14, 2011
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.

None yet

2 participants