Changeset 5592 for trunk/src/includes/forums/template.php
- Timestamp:
- 01/10/2015 10:59:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/template.php
r5563 r5592 2299 2299 // Get _POST data 2300 2300 if ( bbp_is_forum_form_post_request() && isset( $_POST['bbp_forum_type'] ) ) { 2301 $forum_type = $_POST['bbp_forum_type'];2301 $forum_type = sanitize_key( $_POST['bbp_forum_type'] ); 2302 2302 2303 2303 // Get edit data … … 2337 2337 // Get _POST data 2338 2338 if ( bbp_is_forum_form_post_request() && isset( $_POST['bbp_forum_visibility'] ) ) { 2339 $forum_visibility = $_POST['bbp_forum_visibility'];2339 $forum_visibility = sanitize_key( $_POST['bbp_forum_visibility'] ); 2340 2340 2341 2341 // Get edit data … … 2466 2466 // Post value is passed 2467 2467 if ( bbp_is_forum_form_post_request() && isset( $_POST[ $r['select_id'] ] ) ) { 2468 $r['selected'] = $_POST[ $r['select_id'] ];2468 $r['selected'] = sanitize_key( $_POST[ $r['select_id'] ] ); 2469 2469 2470 2470 // No Post value was passed … … 2558 2558 // Post value is passed 2559 2559 if ( bbp_is_forum_form_post_request() && isset( $_POST[ $r['select_id'] ] ) ) { 2560 $r['selected'] = $_POST[ $r['select_id'] ];2560 $r['selected'] = sanitize_key( $_POST[ $r['select_id'] ] ); 2561 2561 2562 2562 // No Post value was passed … … 2650 2650 // Post value is passed 2651 2651 if ( bbp_is_forum_form_post_request() && isset( $_POST[ $r['select_id'] ] ) ) { 2652 $r['selected'] = $_POST[ $r['select_id'] ];2652 $r['selected'] = sanitize_key( $_POST[ $r['select_id'] ] ); 2653 2653 2654 2654 // No Post value was passed
Note: See TracChangeset
for help on using the changeset viewer.