Changeset 5589
- Timestamp:
- 01/10/2015 10:56:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r5515 r5589 287 287 // Check a whitelist of possible topic status ID's 288 288 } elseif ( ! empty( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( bbp_get_topic_statuses() ) ) ) { 289 $topic_status = $_POST['bbp_topic_status'];289 $topic_status = sanitize_key( $_POST['bbp_topic_status'] ); 290 290 291 291 // Default to published if nothing else … … 630 630 // Check a whitelist of possible topic status ID's 631 631 } elseif ( ! empty( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( bbp_get_topic_statuses() ) ) ) { 632 $topic_status = $_POST['bbp_topic_status'];632 $topic_status = sanitize_key( $_POST['bbp_topic_status'] ); 633 633 634 634 // Use existing post_status … … 1504 1504 // How to Split 1505 1505 if ( ! empty( $_POST['bbp_topic_split_option'] ) ) { 1506 $split_option = (string) trim( $_POST['bbp_topic_split_option'] );1506 $split_option = sanitize_key( $_POST['bbp_topic_split_option'] ); 1507 1507 } 1508 1508
Note: See TracChangeset
for help on using the changeset viewer.