Ninja Forms – The Easy and Powerful Forms Builder - Version 3.3.15

Version Description

(31 August 2018) =

Bugs:

  • Fixed an issue causing errors when forms containing checkboxes had csv files attached to Email Actions

=

Download this release

Release Info

Developer ericwindhamsd
Plugin Icon 128x128 Ninja Forms – The Easy and Powerful Forms Builder
Version 3.3.15
Comparing to
See all releases

Code changes from version 3.3.14.1 to 3.3.15

deprecated/ninja-forms.php CHANGED
@@ -265,7 +265,7 @@ class Ninja_Forms {
265
 
266
  // Plugin version
267
  if ( ! defined( 'NF_PLUGIN_VERSION' ) )
268
- define( 'NF_PLUGIN_VERSION', '3.3.14.1' );
269
 
270
  // Plugin Folder Path
271
  if ( ! defined( 'NF_PLUGIN_DIR' ) )
265
 
266
  // Plugin version
267
  if ( ! defined( 'NF_PLUGIN_VERSION' ) )
268
+ define( 'NF_PLUGIN_VERSION', '3.3.15' );
269
 
270
  // Plugin Folder Path
271
  if ( ! defined( 'NF_PLUGIN_DIR' ) )
includes/Fields/Checkbox.php CHANGED
@@ -153,8 +153,14 @@ class NF_Fields_Checkbox extends NF_Abstracts_Input
153
  __( 'unchecked', 'ninja-forms' ) == $value ) return $value;
154
 
155
  // Creating settings variables for our check.
156
- $checked_setting = $field->get_setting( 'checked_value' );
157
- $unchecked_setting = $field->get_setting( 'unchecked_value' );
 
 
 
 
 
 
158
 
159
  // If the the value and check to see if we have checked and unchecked settings...
160
  if ( 1 == $value && ! empty( $checked_setting ) ) {
153
  __( 'unchecked', 'ninja-forms' ) == $value ) return $value;
154
 
155
  // Creating settings variables for our check.
156
+ if( is_array( $field ) ) {
157
+ // The email action sends teh field variable as an array
158
+ $checked_setting = $field[ 'setting' ][ 'checked_value' ];
159
+ $unchecked_setting = $field[ 'setting' ][ 'unchecked_value' ];
160
+ } else {
161
+ $checked_setting = $field->get_setting( 'checked_value' );
162
+ $unchecked_setting = $field->get_setting( 'unchecked_value' );
163
+ }
164
 
165
  // If the the value and check to see if we have checked and unchecked settings...
166
  if ( 1 == $value && ! empty( $checked_setting ) ) {
includes/Fields/Textbox.php CHANGED
@@ -42,7 +42,7 @@ class NF_Fields_Textbox extends NF_Abstracts_Input
42
  * sanitize this in case someone tries to inject data that runs in
43
  * Excel and similar apps
44
  * */
45
- if( 0 < strlen($field_value ) ) {
46
  $first_char = substr( $field_value, 0, 1 );
47
  if( in_array( $first_char, array( '=', '@', '+', '-' ) ) ) {
48
  return "'" . $field_value;
42
  * sanitize this in case someone tries to inject data that runs in
43
  * Excel and similar apps
44
  * */
45
+ if( 0 < strlen( $field_value ) ) {
46
  $first_char = substr( $field_value, 0, 1 );
47
  if( in_array( $first_char, array( '=', '@', '+', '-' ) ) ) {
48
  return "'" . $field_value;
ninja-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ninja Forms
4
  Plugin URI: http://ninjaforms.com/
5
  Description: Ninja Forms is a webform builder with unparalleled ease of use and features.
6
- Version: 3.3.14.1
7
  Author: The WP Ninjas
8
  Author URI: http://ninjaforms.com
9
  Text Domain: ninja-forms
@@ -57,7 +57,7 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
57
  /**
58
  * @since 3.0
59
  */
60
- const VERSION = '3.3.14.1';
61
 
62
  const WP_MIN_VERSION = '4.7';
63
 
3
  Plugin Name: Ninja Forms
4
  Plugin URI: http://ninjaforms.com/
5
  Description: Ninja Forms is a webform builder with unparalleled ease of use and features.
6
+ Version: 3.3.15
7
  Author: The WP Ninjas
8
  Author URI: http://ninjaforms.com
9
  Text Domain: ninja-forms
57
  /**
58
  * @since 3.0
59
  */
60
+ const VERSION = '3.3.15';
61
 
62
  const WP_MIN_VERSION = '4.7';
63
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wpninjasllc, kstover, jameslaws, kbjohnson90, klhall1987, krmoorho
3
  Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration,
4
  Requires at least: 4.7
5
  Tested up to: 4.9
6
- Stable tag: 3.3.14.1
7
  License: GPLv2 or later
8
 
9
  Drag and drop fields in an intuitive UI to create contact forms, email subscription forms, order forms, payment forms, send emails and more!
@@ -111,20 +111,20 @@ For help and video tutorials, please visit our website: [Ninja Forms Documentati
111
 
112
  == Upgrade Notice ==
113
 
114
- = 3.3.14.1 (28 August 2018) =
115
-
116
- *Security:*
117
-
118
- * Patched an XSS vulnerability that allowed javascript injection into the form import function. Many thanks to Adam Roberts for practicing responsible disclosure.
119
- * Patched a CSV injection vulnerability that allowed user values to run some scripts when opening exported CSV files with Excel.
120
 
121
  *Bugs:*
122
 
123
- * The selector in the add a form modal should now scroll properly instead of being cut off by the bottom of the browser when it contains a large number of forms.
124
- * Resolved an issue that sometimes caused the character limit option for paragraph fields to count words instead.
125
 
126
  == Changelog ==
127
 
 
 
 
 
 
 
128
  = 3.3.14.1 (28 August 2018) =
129
 
130
  *Security:*
3
  Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration,
4
  Requires at least: 4.7
5
  Tested up to: 4.9
6
+ Stable tag: 3.3.15
7
  License: GPLv2 or later
8
 
9
  Drag and drop fields in an intuitive UI to create contact forms, email subscription forms, order forms, payment forms, send emails and more!
111
 
112
  == Upgrade Notice ==
113
 
114
+ = 3.3.15 (31 August 2018) =
 
 
 
 
 
115
 
116
  *Bugs:*
117
 
118
+ * Fixed an issue causing errors when forms containing checkboxes had csv files attached to Email Actions
 
119
 
120
  == Changelog ==
121
 
122
+ = 3.3.15 (31 August 2018) =
123
+
124
+ *Bugs:*
125
+
126
+ * Fixed an issue causing errors when forms containing checkboxes had csv files attached to Email Actions
127
+
128
  = 3.3.14.1 (28 August 2018) =
129
 
130
  *Security:*