mozilla / node-client-sessions

secure sessions stored in cookies
Mozilla Public License 2.0
759 stars 104 forks source link

Return undefined from util.decode on more invalid inputs #77

Closed jfirebaugh closed 10 years ago

jfirebaugh commented 10 years ago

Specifically, on inputs with components that are invalid base64. Previously, such input would produce an exception, which is inconsistent with the behavior for other forms of invalid input (wrong number of components, wrong IV length, invalid JSON).

seanmonstar commented 10 years ago

Awesome, thanks! Looks good to me.