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개의 좋아요

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개의 좋아요

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개의 좋아요

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

4개의 좋아요

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

1개의 좋아요

Fixed via:

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

5개의 좋아요