Commas in username are not escaped during export

I just exported my user list, and the resulting CSV was broken when a name contained a ,

Adding quotes around values which contain a , would help.

3 Mi Piace

Oh this is definitely a bug can you add to your list @techapj? Also check for and escape comma in other fields where it can exist.

3 Mi Piace

Howdy @codinghorror. I just came here to report a very similar bug. When we export our users, sometimes the name field contains something like Smith, Jeff or Some Company, Inc. and it’s not wrapped in quotes in the csv so when you open the csv it gets all out of whack. Thanks!

1 Mi Piace

It is more complex than expected but @techapj is working on it

4 Mi Piace

OK great. Thanks for the reply! It’ll be handy to have this fixed.

1 Mi Piace

Fixed via:

https://github.com/discourse/discourse/commit/f1566ef80bd84020cfd3304044caf020b55f77ac

5 Mi Piace