salesforce / secure-filters

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

jsObj(undefined) could return undefined #29

Open ediweissmann opened 9 years ago

ediweissmann commented 9 years ago

jsObj(undefined) throws a TypeError Cannot read property 'replace' of undefined

Could simply pass through undefined and return undefined.

swbiggart commented 8 years ago

Would love for this commit to get pulled in.