Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2010 10:51:24 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2525. Props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-forums/bp-forums-templatetags.php

    r3106 r3143  
    257257
    258258                $post = bb_get_first_post( (int)$forum_template->topic->topic_id, false );
    259                 return apply_filters( 'bp_get_the_topic_text', attribute_escape( $post->post_text ) );
     259                return apply_filters( 'bp_get_the_topic_text', esc_attr( $post->post_text ) );
    260260        }
    261261
     
    971971
    972972                $post = bp_forums_get_post( $bp->action_variables[4] );
    973                 return apply_filters( 'bp_get_the_topic_post_edit_text', attribute_escape( $post->post_text ) );
     973                return apply_filters( 'bp_get_the_topic_post_edit_text', esc_attr( $post->post_text ) );
    974974        }
    975975
     
    10151015?>
    10161016        <form action="" method="get" id="search-forums-form">
    1017                 <label><input type="text" name="s" id="forums_search" value="<?php echo attribute_escape($search_value) ?>"  onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label>
     1017                <label><input type="text" name="s" id="forums_search" value="<?php echo esc_attr($search_value) ?>"  onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label>
    10181018                <input type="submit" id="forums_search_submit" name="forums_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    10191019        </form>
     
    10631063                global $topic_template;
    10641064
    1065                 return apply_filters( 'bp_get_forum_action', $bp->root_domain . attribute_escape( $_SERVER['REQUEST_URI'] ) );
     1065                return apply_filters( 'bp_get_forum_action', $bp->root_domain . esc_attr( $_SERVER['REQUEST_URI'] ) );
    10661066        }
    10671067
     
    10721072                global $bp;
    10731073
    1074                 return apply_filters( 'bp_get_forum_topic_action', $bp->root_domain . attribute_escape( $_SERVER['REQUEST_URI'] ) );
     1074                return apply_filters( 'bp_get_forum_topic_action', $bp->root_domain . esc_attr( $_SERVER['REQUEST_URI'] ) );
    10751075        }
    10761076
Note: See TracChangeset for help on using the changeset viewer.