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 Curtiram

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 Curtiram

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 Curtiu

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

4 Curtiram

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

1 Curtiu

Fixed via:

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

5 Curtiram