Skip to content

Commit

Permalink
Merge pull request #2753 from 10up/fix/2731
Browse files Browse the repository at this point in the history
Strip slashes when saving features.
  • Loading branch information
felipeelia authored May 12, 2022
2 parents 945eb52 + 183b86a commit f1ed382
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ function action_wp_ajax_ep_cancel_index() {
* @since 2.2
*/
function action_wp_ajax_ep_save_feature() {
$_POST = wp_unslash( $_POST );

if ( empty( $_POST['feature'] ) || empty( $_POST['settings'] ) || ! check_ajax_referer( 'ep_dashboard_nonce', 'nonce', false ) ) {
wp_send_json_error();
exit;
Expand Down

0 comments on commit f1ed382

Please sign in to comment.