Changeset 5684 for trunk/src/includes/forums/functions.php
- Timestamp:
- 04/15/2015 03:06:31 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/forums/functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/functions.php
r5676 r5684 87 87 * @uses bbp_set_current_anonymous_user_data() To set the anonymous user cookies 88 88 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error} 89 * @uses esc_attr() For sanitization90 89 * @uses bbp_is_forum_category() To check if the forum is a category 91 90 * @uses bbp_is_forum_closed() To check if the forum is closed … … 147 146 148 147 if ( !empty( $_POST['bbp_forum_title'] ) ) { 149 $forum_title = esc_attr( strip_tags( $_POST['bbp_forum_title'] ));148 $forum_title = sanitize_text_field( $_POST['bbp_forum_title'] ); 150 149 } 151 150 … … 352 351 * @uses bbp_filter_anonymous_post_data() To filter anonymous data 353 352 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error} 354 * @uses esc_attr() For sanitization355 353 * @uses bbp_is_forum_category() To check if the forum is a category 356 354 * @uses bbp_is_forum_closed() To check if the forum is closed … … 454 452 455 453 if ( !empty( $_POST['bbp_forum_title'] ) ) { 456 $forum_title = esc_attr( strip_tags( $_POST['bbp_forum_title'] ));454 $forum_title = sanitize_text_field( $_POST['bbp_forum_title'] ); 457 455 } 458 456 … … 522 520 // Revision Reason 523 521 if ( !empty( $_POST['bbp_forum_edit_reason'] ) ) 524 $forum_edit_reason = esc_attr( strip_tags( $_POST['bbp_forum_edit_reason'] ));522 $forum_edit_reason = sanitize_text_field( $_POST['bbp_forum_edit_reason'] ); 525 523 526 524 // Update revision log
Note: See TracChangeset
for help on using the changeset viewer.