singlebrook / utf8-cleaner

MIT License
277 stars 44 forks source link

Remove null bytes from JSON requests #41

Open collimarco opened 11 months ago

collimarco commented 11 months ago

JSON strings should not contain the null bytes (\x00, \u0000).

This will cause exceptions in Rails - for example when you try to save that string in the database.

It would be nice to remove that invalid character when you are using this gem.