XF 1.1 Start Conversation With User With Comma In Username

Chris D

XenForo developer
Staff member
#3
digitalpoint may very well have a user with a comma as he was on vBulletin forever.

The only solutions here as far as I can see are:

Change the delimiting character used in the explode function in the controller.

Change the username.

Do something with jQuery so that the selected user IDs are passed to a hidden input and modify the controller to get the users from that rather than the usernames.

Maybe store a cache of usernames with commas in and handle these as a special case in the function before they're exploded to an array in the controller.
 

Liam W

Well-known member
#4
digitalpoint may very well have a user with a comma as he was on vBulletin forever.

The only solutions here as far as I can see are:

Change the delimiting character used in the explode function in the controller.

Change the username.

Do something with jQuery so that the selected user IDs are passed to a hidden input and modify the controller to get the users from that rather than the usernames.
Didn't think of that.

If it were me, I would opt for the first option (it seems like the quickest option).
 

digitalpoint

Well-known member
#6
Commas aren't actually allowed in names in XF (nor are names that could be emails). Probably an edge case in your conversion script (as the default one will force you to change their names).
Ah, okay... Will just change their username... Problem solved. :)
 
Top