salesforce / secure-filters

Anti-XSS Security Filters for EJS and More
BSD 3-Clause "New" or "Revised" License
139 stars 39 forks source link

Stash/object encoder #5

Closed stash closed 11 years ago

stash commented 11 years ago

Closes #1

Encode JavaScript objects and literals safely.

stash commented 11 years ago

@mattcreaser @amalkrishnancg can you please review?

amalkrishnancg commented 11 years ago

I'll review this on Thu.

stash commented 11 years ago

Thanks @amalkrishnancg !

mattcreaser commented 11 years ago

LGTM from a code perspective. Single character replaces so it doesn't need to be recursive. I'll leave the rigor check to the experts :sunglasses:

amalkrishnancg commented 11 years ago

LGTM