Skip to:
Content

BuddyPress.org

Changeset 10056


Ignore:
Timestamp:
08/22/2015 01:31:58 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Messages: Remove duplicate stripslashes_deep() call in bp_get_message_thread_subject(). The output of bp_get_message_thread_subject() is already filtered by stripslashes_deep().

This changeset fixes the potential for malformed output to occur if slashes are used in the private message thread subject.

See #6598. For 2.4 (trunk)

File:
1 edited

Legend:

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

    r10038 r10056  
    504504         * @param string $value Subject of the current thread in the loop.
    505505         */
    506         return apply_filters( 'bp_get_message_thread_subject', stripslashes_deep( $messages_template->thread->last_message_subject ) );
     506        return apply_filters( 'bp_get_message_thread_subject', $messages_template->thread->last_message_subject );
    507507    }
    508508
Note: See TracChangeset for help on using the changeset viewer.