Skip to:
Content

BuddyPress.org

Ticket #1905: 1905.002.diff

File 1905.002.diff, 5.7 KB (added by cnorris23, 14 years ago)

Don't strip slashes twice

  • bp-groups/bp-groups-notifications.php

     
    2424To view the group: %s
    2525
    2626---------------------
    27 ', 'buddypress' ), stripslashes( $group->name ), $group_link );
     27', 'buddypress' ), $group->name, $group_link );
    2828
    2929                $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    3030
     
    5555
    5656        // Set up and send the message
    5757        $to = $ud->user_email;
    58         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), stripslashes( $group->name ) );
     58        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), $group->name );
    5959
    6060$message = sprintf( __(
    6161'%s wants to join the group "%s".
     
    6868To view %s\'s profile: %s
    6969
    7070---------------------
    71 ', 'buddypress' ), $requesting_user_name, stripslashes( $group->name ), $group_requests, $requesting_user_name, $profile_link );
     71', 'buddypress' ), $requesting_user_name, $group->name, $group_requests, $requesting_user_name, $profile_link );
    7272
    7373        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    7474
     
    9999        $to = $ud->user_email;
    100100
    101101        if ( $accepted ) {
    102                 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), stripslashes( $group->name ) );
     102                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), $group->name );
    103103                $message = sprintf( __(
    104104'Your membership request for the group "%s" has been accepted.
    105105
    106106To view the group please login and visit: %s
    107107
    108108---------------------
    109 ', 'buddypress' ), stripslashes( $group->name ), $group_link );
     109', 'buddypress' ), $group->name, $group_link );
    110110
    111111        } else {
    112                 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), stripslashes( $group->name ) );
     112                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), $group->name );
    113113                $message = sprintf( __(
    114114'Your membership request for the group "%s" has been rejected.
    115115
    116116To submit another request please log in and visit: %s
    117117
    118118---------------------
    119 ', 'buddypress' ), stripslashes( $group->name ), $group_link );
     119', 'buddypress' ), $group->name, $group_link );
    120120        }
    121121
    122122        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
     
    151151        // Set up and send the message
    152152        $to = $ud->user_email;
    153153
    154         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), stripslashes( $group->name ) );
     154        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), $group->name );
    155155
    156156        $message = sprintf( __(
    157157'You have been promoted to %s for the group: "%s".
     
    159159To view the group please visit: %s
    160160
    161161---------------------
    162 ', 'buddypress' ), $promoted_to, stripslashes( $group->name ), $group_link );
     162', 'buddypress' ), $promoted_to, $group->name, $group_link );
    163163
    164164        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    165165
     
    195195                // Set up and send the message
    196196                $to = $invited_ud->user_email;
    197197
    198                 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), stripslashes( $group->name ) );
     198                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), $group->name );
    199199
    200200                $message = sprintf( __(
    201201'One of your friends %s has invited you to the group: "%s".
     
    207207To view %s\'s profile visit: %s
    208208
    209209---------------------
    210 ', 'buddypress' ), $inviter_name, stripslashes( $group->name ), $invites_link, $group_link, $inviter_name, $inviter_link );
     210', 'buddypress' ), $inviter_name, $group->name, $invites_link, $group_link, $inviter_name, $inviter_link );
    211211
    212212                $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    213213
     
    247247                        // Set up and send the message
    248248                        $ud = bp_core_get_core_userdata( $receiver_user_id );
    249249                        $to = $ud->user_email;
    250                         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s mentioned you in the group "%s"', 'buddypress' ), stripslashes( $poster_name ), wp_filter_kses( stripslashes( $group->name ) ) );
     250                        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s mentioned you in the group "%s"', 'buddypress' ), stripslashes( $poster_name ), $group->name );
    251251
    252252$message = sprintf( __(
    253253'%s mentioned you in the group "%s":
     
    257257To view and respond to the message, log in and visit: %s
    258258
    259259---------------------
    260 ', 'buddypress' ), $poster_name, wp_filter_kses( stripslashes_deep( $group->name ) ), wp_filter_kses( stripslashes_deep($content) ), $message_link );
     260', 'buddypress' ), $poster_name, $group->name, wp_filter_kses( stripslashes( $content ) ), $message_link );
    261261
    262262                        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    263263