Skip to:
Content

BuddyPress.org

Ticket #2145: strip_tags_on_forum_edit_screens.patch

File strip_tags_on_forum_edit_screens.patch, 869 bytes (added by boonebgorges, 15 years ago)
  • bp-forums/bp-forums-templatetags.php

     
    253253                global $forum_template;
    254254
    255255                $post = bb_get_first_post( (int)$forum_template->topic->topic_id, false );
     256               
     257                if ( bp_is_group_forum_topic_edit()  )
     258                        $post->post_text = strip_tags( $post->post_text );
     259                       
    256260                return apply_filters( 'bp_get_the_topic_text', $post->post_text );
    257261        }
    258262
     
    937941                global $bp;
    938942
    939943                $post = bp_forums_get_post( $bp->action_variables[4] );
    940                 return attribute_escape( $post->post_text );
     944               
     945                if ( bp_is_group_forum_topic_edit()  )
     946                        $post->post_text = strip_tags( $post->post_text );
     947               
     948                return esc_attr( $post->post_text );
    941949        }
    942950
    943951function bp_the_topic_pagination() {