openphoto/frontend — pull request #398 by ttaubert (2011-12-23 16:32:07+00:00)
Title: Fix various white space issues with tags

This patch fixes white space issues with tags. If a user submit the following tags ...

" 2011, 2011 ,2011,"

... we'll end up with for different tags where actually this is only one valid tag. This happened to me because I added tags like "London, 2011" and "2011,February" were automatically added. We should trim the tags string and use preg_split() to handle commas enclosed by white spaces.