jbuck / express-persona

Mozilla Persona integration for Express
http://jbuck.github.com/express-persona
BSD 2-Clause "Simplified" License
66 stars 16 forks source link

Uncaught TypeError if req.body is undefined in /persona/verify route #9

Closed cadecairos closed 11 years ago

cadecairos commented 11 years ago

I've gotten into a situation where if req.body is undefined, The server won't return early and instead continues down an unsafe code path.

All it needs is a return;

cadecairos commented 11 years ago

I will never understand GH issues and pull requests.