Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2015 04:18:39 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Messages: Audit bp-messages-template.php output functions and add escaping and/or sanitization based on their anticipated results and usages.

Hat-tip boonebgorges. Props vnd.

For 2.4 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-filters.php

    r9948 r10060  
    5858add_filter( 'bp_get_the_thread_message_content', 'wpautop' );
    5959
    60 add_filter( 'bp_get_message_notice_subject',     'stripslashes_deep' );
    61 add_filter( 'bp_get_message_notice_text',        'stripslashes_deep' );
    62 add_filter( 'bp_get_message_thread_subject',     'stripslashes_deep' );
    63 add_filter( 'bp_get_message_thread_excerpt',     'stripslashes_deep' );
    64 add_filter( 'bp_get_messages_subject_value',     'stripslashes_deep' );
    65 add_filter( 'bp_get_messages_content_value',     'stripslashes_deep' );
    66 add_filter( 'bp_get_the_thread_message_content', 'stripslashes_deep' );
    67 add_filter( 'bp_get_the_thread_subject',         'stripslashes_deep' );
     60add_filter( 'bp_get_message_notice_subject',          'stripslashes_deep' );
     61add_filter( 'bp_get_message_notice_text',             'stripslashes_deep' );
     62add_filter( 'bp_get_message_thread_subject',          'stripslashes_deep' );
     63add_filter( 'bp_get_message_thread_excerpt',          'stripslashes_deep' );
     64add_filter( 'bp_get_message_get_recipient_usernames', 'stripslashes_deep' );
     65add_filter( 'bp_get_messages_subject_value',          'stripslashes_deep' );
     66add_filter( 'bp_get_messages_content_value',          'stripslashes_deep' );
     67add_filter( 'bp_get_the_thread_message_content',      'stripslashes_deep' );
     68add_filter( 'bp_get_the_thread_subject',              'stripslashes_deep' );
    6869
    6970/**
Note: See TracChangeset for help on using the changeset viewer.