FriendsOfSymfony / FOSMessageBundle

User-to-user messaging bundle for Symfony
356 stars 183 forks source link

fixed bug that was causing insert to fail (utf-8 problem) #315

Closed domgraziano closed 5 years ago

domgraziano commented 7 years ago

When testing the bundle with special characters the mongo insert was failing. The problem was in the method generating the keywords not properly sanitised as UTF-8. As far as I can tell the root cause was the usage of array_unique. The fix I did works here.

hex333ham commented 5 years ago

arguably removing array_unique isn't desirable for the purposes of keywords

closing for now as this issue is a couple of years old and a fork would solve this edge case