Constant Contact Forms - Version 1.8.8

Version Description

  • Updated: Added extra security output escaping of custom input values
Download this release

Release Info

Developer constantcontact
Plugin Icon 128x128 Constant Contact Forms
Version 1.8.8
Comparing to
See all releases

Code changes from version 1.8.7 to 1.8.8

constant-contact-forms.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Constant Contact Forms for WordPress
13
  * Plugin URI: https://www.constantcontact.com
14
  * Description: Be a better marketer. All it takes is Constant Contact email marketing.
15
- * Version: 1.8.7
16
  * Author: Constant Contact
17
  * Author URI: https://www.constantcontact.com/index?pn=miwordpress
18
  * License: GPLv3
@@ -72,7 +72,7 @@ class Constant_Contact {
72
  * @since 1.0.0
73
  * @var string
74
  */
75
- const VERSION = '1.8.7';
76
 
77
  /**
78
  * URL of plugin directory.
12
  * Plugin Name: Constant Contact Forms for WordPress
13
  * Plugin URI: https://www.constantcontact.com
14
  * Description: Be a better marketer. All it takes is Constant Contact email marketing.
15
+ * Version: 1.8.8
16
  * Author: Constant Contact
17
  * Author URI: https://www.constantcontact.com/index?pn=miwordpress
18
  * License: GPLv3
72
  * @since 1.0.0
73
  * @var string
74
  */
75
+ const VERSION = '1.8.8';
76
 
77
  /**
78
  * URL of plugin directory.
includes/class-display.php CHANGED
@@ -969,7 +969,7 @@ class ConstantContact_Display {
969
 
970
  $type = sanitize_text_field( $type );
971
  $value = sanitize_text_field( $value );
972
- $label = sanitize_text_field( $label );
973
  $req_text = $req ? 'required' : '';
974
 
975
  $markup = $this->field_top( $type, $name, $field_key, $label, $req );
@@ -1136,7 +1136,7 @@ class ConstantContact_Display {
1136
  'type' => 'submit',
1137
  'name' => 'ctct-submitted',
1138
  'map_to' => 'ctct-submitted',
1139
- 'value' => $button_text,
1140
  ] );
1141
  }
1142
 
969
 
970
  $type = sanitize_text_field( $type );
971
  $value = sanitize_text_field( $value );
972
+ $label = esc_html( sanitize_text_field( $label ) );
973
  $req_text = $req ? 'required' : '';
974
 
975
  $markup = $this->field_top( $type, $name, $field_key, $label, $req );
1136
  'type' => 'submit',
1137
  'name' => 'ctct-submitted',
1138
  'map_to' => 'ctct-submitted',
1139
+ 'value' => esc_html( $button_text ),
1140
  ] );
1141
  }
1142
 
includes/class-process-form.php CHANGED
@@ -111,9 +111,9 @@ class ConstantContact_Process_Form {
111
 
112
  case 'success':
113
  /** This filter is documented in includes/class-process-form.php */
114
- $message = apply_filters( 'ctct_process_form_success',
115
  __( 'Your information has been submitted.', 'constant-contact-forms' ),
116
- (int) $json_data['ctct-id'] );
117
  break;
118
 
119
  case 'error':
@@ -653,7 +653,7 @@ class ConstantContact_Process_Form {
653
  * @param string $value Success message.
654
  * @param string/int $form_id ID of the Constant Contact form being submitted to.
655
  */
656
- $message = apply_filters( 'ctct_process_form_success', __( 'Your information has been submitted.', 'constant-contact-forms' ), $form_id );
657
  break;
658
 
659
  case 'error':
111
 
112
  case 'success':
113
  /** This filter is documented in includes/class-process-form.php */
114
+ $message = esc_html ( apply_filters( 'ctct_process_form_success',
115
  __( 'Your information has been submitted.', 'constant-contact-forms' ),
116
+ (int) $json_data['ctct-id'] ) );
117
  break;
118
 
119
  case 'error':
653
  * @param string $value Success message.
654
  * @param string/int $form_id ID of the Constant Contact form being submitted to.
655
  */
656
+ $message = esc_html ( apply_filters( 'ctct_process_form_success', __( 'Your information has been submitted.', 'constant-contact-forms' ), $form_id ) );
657
  break;
658
 
659
  case 'error':
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: constantcontact, webdevstudios, tw2113, znowebdev, ggwicz, ravedev
3
  Tags: capture, contacts, constant contact, constant contact form, constant contact newsletter, constant contact official, contact forms, email, form, forms, marketing, mobile, newsletter, opt-in, plugin, signup, subscribe, subscription, widget
4
  Requires at least: 5.2.0
5
- Tested up to: 5.4.1
6
- Stable tag: 1.8.7
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
  Requires PHP: 5.6
@@ -14,7 +14,7 @@ The official Constant Contact plugin adds a contact form to your WordPress site
14
 
15
  **Constant Contact Forms** makes it fast and easy to capture visitor information right from your WordPress site. Whether you’re looking to collect email addresses, contact info, or visitor feedback, you can customize your forms with data fields that work best for you. Best of all, this plugin is available to all WordPress users, even if you don’t have a Constant Contact account.
16
 
17
- https://www.youtube.com/watch?v=MhxtAlpZzJw
18
 
19
  **Constant Contact Forms** allows you to:
20
 
@@ -35,6 +35,9 @@ BONUS: If you have a Constant Contact account, all new email addresses that you
35
 
36
  == Changelog ==
37
 
 
 
 
38
  = 1.8.7 =
39
  * Improved: Implemented recommendations for improved accessibility.
40
  * Improved: Avoid duplicate ID attributes when more than one form is present on a page.
2
  Contributors: constantcontact, webdevstudios, tw2113, znowebdev, ggwicz, ravedev
3
  Tags: capture, contacts, constant contact, constant contact form, constant contact newsletter, constant contact official, contact forms, email, form, forms, marketing, mobile, newsletter, opt-in, plugin, signup, subscribe, subscription, widget
4
  Requires at least: 5.2.0
5
+ Tested up to: 5.5
6
+ Stable tag: 1.8.8
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
  Requires PHP: 5.6
14
 
15
  **Constant Contact Forms** makes it fast and easy to capture visitor information right from your WordPress site. Whether you’re looking to collect email addresses, contact info, or visitor feedback, you can customize your forms with data fields that work best for you. Best of all, this plugin is available to all WordPress users, even if you don’t have a Constant Contact account.
16
 
17
+ https://www.youtube.com/watch?v=Qqb0_zcRKnM
18
 
19
  **Constant Contact Forms** allows you to:
20
 
35
 
36
  == Changelog ==
37
 
38
+ = 1.8.8 =
39
+ * Updated: Added extra security output escaping of custom input values
40
+
41
  = 1.8.7 =
42
  * Improved: Implemented recommendations for improved accessibility.
43
  * Improved: Avoid duplicate ID attributes when more than one form is present on a page.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit9be5d623c7332ab70e31d2aad7bcd258::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInita82e6231acfd166d9b5a465ded099432::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit9be5d623c7332ab70e31d2aad7bcd258
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit9be5d623c7332ab70e31d2aad7bcd258
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit9be5d623c7332ab70e31d2aad7bcd258', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit9be5d623c7332ab70e31d2aad7bcd258', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258::getInitializer($loader));
31
  } else {
32
  $classMap = require __DIR__ . '/autoload_classmap.php';
33
  if ($classMap) {
@@ -39,19 +39,19 @@ class ComposerAutoloaderInit9be5d623c7332ab70e31d2aad7bcd258
39
  $loader->register(true);
40
 
41
  if ($useStaticLoader) {
42
- $includeFiles = Composer\Autoload\ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258::$files;
43
  } else {
44
  $includeFiles = require __DIR__ . '/autoload_files.php';
45
  }
46
  foreach ($includeFiles as $fileIdentifier => $file) {
47
- composerRequire9be5d623c7332ab70e31d2aad7bcd258($fileIdentifier, $file);
48
  }
49
 
50
  return $loader;
51
  }
52
  }
53
 
54
- function composerRequire9be5d623c7332ab70e31d2aad7bcd258($fileIdentifier, $file)
55
  {
56
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
57
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita82e6231acfd166d9b5a465ded099432
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInita82e6231acfd166d9b5a465ded099432', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInita82e6231acfd166d9b5a465ded099432', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInita82e6231acfd166d9b5a465ded099432::getInitializer($loader));
31
  } else {
32
  $classMap = require __DIR__ . '/autoload_classmap.php';
33
  if ($classMap) {
39
  $loader->register(true);
40
 
41
  if ($useStaticLoader) {
42
+ $includeFiles = Composer\Autoload\ComposerStaticInita82e6231acfd166d9b5a465ded099432::$files;
43
  } else {
44
  $includeFiles = require __DIR__ . '/autoload_files.php';
45
  }
46
  foreach ($includeFiles as $fileIdentifier => $file) {
47
+ composerRequirea82e6231acfd166d9b5a465ded099432($fileIdentifier, $file);
48
  }
49
 
50
  return $loader;
51
  }
52
  }
53
 
54
+ function composerRequirea82e6231acfd166d9b5a465ded099432($fileIdentifier, $file)
55
  {
56
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
57
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258
8
  {
9
  public static $files = array (
10
  'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@@ -390,10 +390,10 @@ class ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258
390
  public static function getInitializer(ClassLoader $loader)
391
  {
392
  return \Closure::bind(function () use ($loader) {
393
- $loader->prefixLengthsPsr4 = ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258::$prefixLengthsPsr4;
394
- $loader->prefixDirsPsr4 = ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258::$prefixDirsPsr4;
395
- $loader->prefixesPsr0 = ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258::$prefixesPsr0;
396
- $loader->classMap = ComposerStaticInit9be5d623c7332ab70e31d2aad7bcd258::$classMap;
397
 
398
  }, null, ClassLoader::class);
399
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita82e6231acfd166d9b5a465ded099432
8
  {
9
  public static $files = array (
10
  'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
390
  public static function getInitializer(ClassLoader $loader)
391
  {
392
  return \Closure::bind(function () use ($loader) {
393
+ $loader->prefixLengthsPsr4 = ComposerStaticInita82e6231acfd166d9b5a465ded099432::$prefixLengthsPsr4;
394
+ $loader->prefixDirsPsr4 = ComposerStaticInita82e6231acfd166d9b5a465ded099432::$prefixDirsPsr4;
395
+ $loader->prefixesPsr0 = ComposerStaticInita82e6231acfd166d9b5a465ded099432::$prefixesPsr0;
396
+ $loader->classMap = ComposerStaticInita82e6231acfd166d9b5a465ded099432::$classMap;
397
 
398
  }, null, ClassLoader::class);
399
  }