Contact Form 7 Multi-Step Forms - Version 4.1

Version Description

  • added sanitization similar to the core CF7 plugin.
Download this release

Release Info

Developer webheadllc
Plugin Icon 128x128 Contact Form 7 Multi-Step Forms
Version 4.1
Comparing to
See all releases

Code changes from version 4.0.9 to 4.1

Files changed (3) hide show
  1. cf7msm.php +17 -1
  2. contact-form-7-multi-step-module.php +1 -1
  3. readme.txt +5 -2
cf7msm.php CHANGED
@@ -197,7 +197,7 @@ function cf7msm_get( $var_name, $default = '' )
197
  $ret = json_decode( wp_unslash( $ret ), true );
198
  }
199
 
200
- return $ret;
201
  }
202
 
203
  /**
@@ -809,3 +809,19 @@ function cf7msm_maybe_set_big_cookie_notice()
809
  }
810
 
811
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  $ret = json_decode( wp_unslash( $ret ), true );
198
  }
199
 
200
+ return cf7msm_sanitize_posted_data( $ret );
201
  }
202
 
203
  /**
809
  }
810
 
811
  }
812
+
813
+ /**
814
+ * from cf7 submission.php
815
+ */
816
+ function cf7msm_sanitize_posted_data( $value )
817
+ {
818
+
819
+ if ( is_array( $value ) ) {
820
+ $value = array_map( 'cf7msm_sanitize_posted_data', $value );
821
+ } elseif ( is_string( $value ) ) {
822
+ $value = wp_check_invalid_utf8( $value );
823
+ $value = wp_kses_no_null( $value );
824
+ }
825
+
826
+ return $value;
827
+ }
contact-form-7-multi-step-module.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://www.mymonkeydo.com/contact-form-7-multi-step-module/
6
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
7
  Author: Webhead LLC.
8
  Author URI: http://webheadcoder.com
9
- Version: 4.0.9
10
  Text Domain: contact-form-7-multi-step-module
11
  */
12
  /* Copyright 2018 Webhead LLC (email: info at webheadcoder.com)
6
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
7
  Author: Webhead LLC.
8
  Author URI: http://webheadcoder.com
9
+ Version: 4.1
10
  Text Domain: contact-form-7-multi-step-module
11
  */
12
  /* Copyright 2018 Webhead LLC (email: info at webheadcoder.com)
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webheadllc
3
  Donate Link: https://webheadcoder.com/donate-cf7-multi-step-forms
4
  Tags: contact form 7, multistep form, form, multiple pages, contact, multi, step
5
  Requires at least: 4.7
6
- Tested up to: 5.5
7
- Stable tag: 4.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -135,6 +135,9 @@ When checkboxes are not checked they aren't submitted through the form so the la
135
 
136
  == Changelog ==
137
 
 
 
 
138
  = 4.0.9 =
139
  * updated freemius.
140
 
3
  Donate Link: https://webheadcoder.com/donate-cf7-multi-step-forms
4
  Tags: contact form 7, multistep form, form, multiple pages, contact, multi, step
5
  Requires at least: 4.7
6
+ Tested up to: 5.6
7
+ Stable tag: 4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
135
 
136
  == Changelog ==
137
 
138
+ = 4.1 =
139
+ * added sanitization similar to the core CF7 plugin.
140
+
141
  = 4.0.9 =
142
  * updated freemius.
143