Ticket #2057: 2057.patch
File 2057.patch, 2.3 KB (added by , 14 years ago) |
---|
-
bp-activity/bp-activity-functions.php
19 19 * @return array $usernames Array of the found usernames that match existing users 20 20 */ 21 21 function bp_activity_find_mentions( $content ) { 22 $pattern = '/[@]+([A-Za-z0-9-_\. ]+)/';22 $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/'; 23 23 preg_match_all( $pattern, $content, $usernames ); 24 24 25 25 // Make sure there's only one instance of each username -
bp-activity/bp-activity-notifications.php
12 12 global $bp; 13 13 14 14 /* Scan for @username strings in an activity update. Notify each user. */ 15 $pattern = '/[@]+([A-Za-z0-9-_\. ]+)/';15 $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/'; 16 16 preg_match_all( $pattern, $content, $usernames ); 17 17 18 18 /* Make sure there's only one instance of each username */ -
bp-forums/bp-forums-filters.php
123 123 124 124 $content = htmlspecialchars_decode( $content ); 125 125 126 $pattern = "|<a href='" . bp_get_root_domain() . "/" . $bp->members->slug . "/[A-Za-z0-9-_\.]+/' rel='nofollow'>(@[A-Za-z0-9-_\. ]+)</a>|";126 $pattern = "|<a href='" . bp_get_root_domain() . "/" . $bp->members->slug . "/[A-Za-z0-9-_\.]+/' rel='nofollow'>(@[A-Za-z0-9-_\.@]+)</a>|"; 127 127 128 128 $content = preg_replace( $pattern, "$1", $content ); 129 129 -
bp-groups/bp-groups-notifications.php
253 253 global $bp; 254 254 255 255 /* Scan for @username strings in an activity update. Notify each user. */ 256 $pattern = '/[@]+([A-Za-z0-9-_\. ]+)/';256 $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/'; 257 257 preg_match_all( $pattern, $content, $usernames ); 258 258 259 259 /* Make sure there's only one instance of each username */