Skip to:
Content

BuddyPress.org

Ticket #339: fix_xmlrpc.patch

File fix_xmlrpc.patch, 791 bytes (added by burtadsit, 15 years ago)

fix xmlrpc escape and format problems

  • bp-forums-filters.php

     
    2323/* BuddyPress filters */
    2424add_filter( 'bp_forums_new_post_text', 'bp_forums_filter_encode' );
    2525
    26 add_filter( 'bp_the_topic_post_content', 'bp_forums_filter_decode' );
    27 add_filter( 'bp_the_topic_latest_post_excerpt', 'bp_forums_filter_decode' );
     26add_filter( 'bp_the_topic_post_content', 'bp_forums_filter_decode',1);
     27add_filter( 'bp_the_topic_latest_post_excerpt', 'bp_forums_filter_decode',1 );
     28global $allowedtags; $allowedtags['p'] = array(); $allowedtags['br'] = array();
    2829
    2930function bp_forums_filter_encode( $content ) {
    3031        $content = htmlentities( $content, ENT_COMPAT, "UTF-8" );