Skip to content
Permalink
Browse files Browse the repository at this point in the history
vulnerability fix
  • Loading branch information
planv committed May 6, 2022
1 parent 4d2de93 commit 6aee7ae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/classes/class-settings.php
Expand Up @@ -515,11 +515,14 @@ public function setup_wizard_interface() {
public function save_media_settings(){
if(isset($_POST['action']) && $_POST['action'] == 'stateless_settings' && wp_verify_nonce( $_POST['_smnonce'], 'wp-stateless-settings' )){

$settings = apply_filters('stateless::settings::save', sanitize_text_field($_POST['sm']));
$settings = apply_filters('stateless::settings::save', $_POST['sm']);
$root_dir_value = false;

foreach ( $settings as $name => $value ) {

/**
* Sanitize POST data
*/
$value = sanitize_text_field($value);
/**
* root_dir settings
*/
Expand Down

0 comments on commit 6aee7ae

Please sign in to comment.