[buddypress-trac] [BuddyPress] #3945: The at mentions functionality does not work when the username is followed by a full stop

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Jan 22 05:50:44 UTC 2012


#3945: The at mentions functionality does not work when the username is followed
by a full stop
--------------------------+-----------------------------
 Reporter:  kwerri        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Activity      |    Version:  1.5.3
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Repro steps:
 1. Get a username of a user on a site that uses BuddyPress. Let's call
 this '''username'''.

 2. Make a comment on a post, including the text '''@username.''' (i.e. the
 at sign followed by '''username''' followed by a full stop.

 3. Observe that the username is not converted into a link to the user's
 BuddyPress profile.

 The problem seems to be with the regex pattern that is used to determine
 at-mentions in posts. This is in the bp_activity_find_mentions functions
 in wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php

 The pattern is '''/[@]+([A-Za-z0-9-_\.@]+)/''', but it should be
 '''/[@]+([A-Za-z0-9-_\.@]+[A-Za-z0-9-_@])/'''

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3945>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list