[buddypress-trac] [BuddyPress Trac] #4680: @-mentions getting linked even when already inside a link

buddypress-trac noreply at wordpress.org
Sun Feb 16 15:25:21 UTC 2014


#4680: @-mentions getting linked even when already inside a link
--------------------------+------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  2.0
Component:  Core          |     Version:
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by josswinn):

 Background to the issue is here: http://buddypress.org/support/topic
 /strange-injection-of-email-address-on-text-with-baseurl

 An example of the issue is here: http://blogs.lincoln.ac.uk/test/

 The example is reflective of the issue *after* applying the patch from
 this thread. The patch has resolved the issue with mailto links as
 described earlier in this thread. However, the patch has not resolved a
 related issue whereby if I include @lincoln.ac.uk (the root domain name)
 in any post/page content, the BuddyPress Activity component automatically
 injects a hyperlink. An example is:

 {{{

 @lincoln.ac.uk
 }}}


 is converted to:


 {{{
 <p><a href='http://blogs.lincoln.ac.uk/amakrzanowska%40lincoln.ac.uk/'
 rel='nofollow'>@lincoln.ac.uk</a></p>
 }}}


 How it decides which user email to inject, I don't know. I have deleted a
 previous user it was injecting and it picked, seemingly randomly, another
 user email address to inject.


 If I add


 {{{
 add_filter( 'bp_activity_do_mentions', '__return_false' );
 }}}


 to bp-custom.php, then the issue is resolved, but I also lose the
 'mentions' feature of the activity component.

 The issue doesn't occur on a similar test install that we use.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4680#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list