• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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).