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 إعجابات