scoumbourdis/grocery-crud — pull request #197 by Riball (2013-06-18 08:58:39+00:00)
Title: Properly sanitize filenames for uploads

If there are translit characters replace them first.
After that remove all characters that aren't allowed and remove duplicate dashes.

Fixes issues with filenames like: ,,,''"'I am*() a super 'superawesome file+with a super awesome-name“””’xxxx-.jpg