Skip to:
Content

BuddyPress.org

Changeset 10057


Ignore:
Timestamp:
08/22/2015 01:35:48 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.3.3 (2.3 branch)

File:
1 edited

Legend:

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

    r9862 r10057  
    496496         * @param string $value Subject of the current thread in the loop.
    497497         */
    498         return apply_filters( 'bp_get_message_thread_subject', stripslashes_deep( $messages_template->thread->last_message_subject ) );
     498        return apply_filters( 'bp_get_message_thread_subject', $messages_template->thread->last_message_subject );
    499499    }
    500500
Note: See TracChangeset for help on using the changeset viewer.