panique / huge

Simple user-authentication solution, embedded into a small framework.
2.14k stars 789 forks source link

[improvement] XSSFilter recursive implementation for array and object #858

Closed kristuff closed 7 years ago

kristuff commented 7 years ago

This should help to close open issue https://github.com/panique/huge/issues/790 and the blocked PR https://github.com/panique/huge/pull/794 about XSSFilter :)

This PR contains something similar as the solution proposed here https://github.com/panique/huge/issues/790 : the Filter::XssFilter() method takes now both string, array and object as parameter (recursive to array values or object preperties).

panique commented 7 years ago

Thanks a lot, this is really cool! :)