Changeset 5684 for trunk/src/includes/topics/functions.php
- Timestamp:
- 04/15/2015 03:06:31 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/functions.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r5676 r5684 92 92 * @uses bbp_set_current_anonymous_user_data() To set the anonymous user cookies 93 93 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error} 94 * @uses esc_attr() For sanitization95 94 * @uses bbp_is_forum_category() To check if the forum is a category 96 95 * @uses bbp_is_forum_closed() To check if the forum is closed … … 175 174 176 175 if ( ! empty( $_POST['bbp_topic_title'] ) ) { 177 $topic_title = esc_attr( strip_tags( $_POST['bbp_topic_title'] ));176 $topic_title = sanitize_text_field( $_POST['bbp_topic_title'] ); 178 177 } 179 178 … … 306 305 307 306 // Escape tag input 308 $terms = esc_attr( strip_tags( $_POST['bbp_topic_tags'] ));307 $terms = sanitize_text_field( $_POST['bbp_topic_tags'] ); 309 308 310 309 // Explode by comma … … 464 463 * @uses bbp_filter_anonymous_post_data() To filter anonymous data 465 464 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error} 466 * @uses esc_attr() For sanitization467 465 * @uses bbp_is_forum_category() To check if the forum is a category 468 466 * @uses bbp_is_forum_closed() To check if the forum is closed … … 600 598 601 599 if ( ! empty( $_POST['bbp_topic_title'] ) ) { 602 $topic_title = esc_attr( strip_tags( $_POST['bbp_topic_title'] ));600 $topic_title = sanitize_text_field( $_POST['bbp_topic_title'] ); 603 601 } 604 602 … … 656 654 657 655 // Escape tag input 658 $terms = esc_attr( strip_tags( $_POST['bbp_topic_tags'] ));656 $terms = sanitize_text_field( $_POST['bbp_topic_tags'] ); 659 657 660 658 // Explode by comma … … 725 723 // Revision Reason 726 724 if ( ! empty( $_POST['bbp_topic_edit_reason'] ) ) { 727 $topic_edit_reason = esc_attr( strip_tags( $_POST['bbp_topic_edit_reason'] ));725 $topic_edit_reason = sanitize_text_field( $_POST['bbp_topic_edit_reason'] ); 728 726 } 729 727 … … 1558 1556 // Use the new title that was passed 1559 1557 if ( ! empty( $_POST['bbp_topic_split_destination_title'] ) ) { 1560 $destination_topic_title = esc_attr( strip_tags( $_POST['bbp_topic_split_destination_title'] ));1558 $destination_topic_title = sanitize_text_field( $_POST['bbp_topic_split_destination_title'] ); 1561 1559 1562 1560 // Use the source topic title
Note: See TracChangeset
for help on using the changeset viewer.