@automattic/newspack-blocks 2.3.0-alpha.1 → 2.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.3.0-alpha.2](https://github.com/Automattic/newspack-blocks/compare/v2.3.0-alpha.1...v2.3.0-alpha.2) (2023-12-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * replace FILTER_SANITIZE_STRING ([6f805b0](https://github.com/Automattic/newspack-blocks/commit/6f805b0806d24f9e44d293a13ca486fdf23c73ab))
7
+
1
8
  # [2.3.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v2.2.2...v2.3.0-alpha.1) (2023-11-30)
2
9
 
3
10
 
@@ -155,9 +155,9 @@ final class Modal_Checkout {
155
155
  $is_newspack_checkout = filter_input( INPUT_GET, 'newspack_checkout', FILTER_SANITIZE_NUMBER_INT );
156
156
  $product_id = filter_input( INPUT_GET, 'product_id', FILTER_SANITIZE_NUMBER_INT );
157
157
  $variation_id = filter_input( INPUT_GET, 'variation_id', FILTER_SANITIZE_NUMBER_INT );
158
- $after_success_behavior = filter_input( INPUT_GET, 'after_success_behavior', FILTER_SANITIZE_STRING );
159
- $after_success_url = filter_input( INPUT_GET, 'after_success_url', FILTER_SANITIZE_STRING );
160
- $after_success_button_label = filter_input( INPUT_GET, 'after_success_button_label', FILTER_SANITIZE_STRING );
158
+ $after_success_behavior = filter_input( INPUT_GET, 'after_success_behavior', FILTER_SANITIZE_SPECIAL_CHARS );
159
+ $after_success_url = filter_input( INPUT_GET, 'after_success_url', FILTER_SANITIZE_SPECIAL_CHARS );
160
+ $after_success_button_label = filter_input( INPUT_GET, 'after_success_button_label', FILTER_SANITIZE_SPECIAL_CHARS );
161
161
 
162
162
  if ( ! $is_newspack_checkout || ! $product_id ) {
163
163
  return;
@@ -7,7 +7,7 @@
7
7
  * Author URI: https://newspack.com/
8
8
  * Text Domain: newspack-blocks
9
9
  * Domain Path: /languages
10
- * Version: 2.3.0-alpha.1
10
+ * Version: 2.3.0-alpha.2
11
11
  *
12
12
  * @package Newspack_Blocks
13
13
  */
@@ -15,7 +15,7 @@
15
15
  define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
16
16
  define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
17
17
  define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
18
- define( 'NEWSPACK_BLOCKS__VERSION', '2.3.0-alpha.1' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '2.3.0-alpha.2' );
19
19
 
20
20
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
21
21
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/newspack-blocks",
3
- "version": "2.3.0-alpha.1",
3
+ "version": "2.3.0-alpha.2",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
6
  "@rushstack/eslint-patch": "^1.5.1",
@@ -24,9 +24,9 @@ $form_class = 'checkout woocommerce-checkout';
24
24
  $form_method = $edit_billing ? 'get' : 'post';
25
25
  $form_billing_fields = \Newspack_Blocks\Modal_Checkout::get_prefilled_fields();
26
26
 
27
- $after_success_behavior = filter_input( INPUT_GET, 'after_success_behavior', FILTER_SANITIZE_STRING );
28
- $after_success_url = filter_input( INPUT_GET, 'after_success_url', FILTER_SANITIZE_STRING );
29
- $after_success_button_label = filter_input( INPUT_GET, 'after_success_button_label', FILTER_SANITIZE_STRING );
27
+ $after_success_behavior = filter_input( INPUT_GET, 'after_success_behavior', FILTER_SANITIZE_SPECIAL_CHARS );
28
+ $after_success_url = filter_input( INPUT_GET, 'after_success_url', FILTER_SANITIZE_SPECIAL_CHARS );
29
+ $after_success_button_label = filter_input( INPUT_GET, 'after_success_button_label', FILTER_SANITIZE_SPECIAL_CHARS );
30
30
 
31
31
  if ( $edit_billing ) {
32
32
  $form_class .= ' edit-billing';
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
22
 
23
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
24
 
25
- return ComposerAutoloaderInit144e15bc433bc7e56131781af991c07e::getLoader();
25
+ return ComposerAutoloaderInit72b26105572f1741b2b4b9a12cd5b2c7::getLoader();
@@ -2,7 +2,7 @@
2
2
 
3
3
  // autoload_real.php @generated by Composer
4
4
 
5
- class ComposerAutoloaderInit144e15bc433bc7e56131781af991c07e
5
+ class ComposerAutoloaderInit72b26105572f1741b2b4b9a12cd5b2c7
6
6
  {
7
7
  private static $loader;
8
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInit144e15bc433bc7e56131781af991c07e
22
22
  return self::$loader;
23
23
  }
24
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit144e15bc433bc7e56131781af991c07e', 'loadClassLoader'), true, true);
25
+ spl_autoload_register(array('ComposerAutoloaderInit72b26105572f1741b2b4b9a12cd5b2c7', 'loadClassLoader'), true, true);
26
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit144e15bc433bc7e56131781af991c07e', 'loadClassLoader'));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit72b26105572f1741b2b4b9a12cd5b2c7', 'loadClassLoader'));
28
28
 
29
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInit144e15bc433bc7e56131781af991c07e::getInitializer($loader));
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit72b26105572f1741b2b4b9a12cd5b2c7::getInitializer($loader));
31
31
 
32
32
  $loader->register(true);
33
33
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  namespace Composer\Autoload;
6
6
 
7
- class ComposerStaticInit144e15bc433bc7e56131781af991c07e
7
+ class ComposerStaticInit72b26105572f1741b2b4b9a12cd5b2c7
8
8
  {
9
9
  public static $classMap = array (
10
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -13,7 +13,7 @@ class ComposerStaticInit144e15bc433bc7e56131781af991c07e
13
13
  public static function getInitializer(ClassLoader $loader)
14
14
  {
15
15
  return \Closure::bind(function () use ($loader) {
16
- $loader->classMap = ComposerStaticInit144e15bc433bc7e56131781af991c07e::$classMap;
16
+ $loader->classMap = ComposerStaticInit72b26105572f1741b2b4b9a12cd5b2c7::$classMap;
17
17
 
18
18
  }, null, ClassLoader::class);
19
19
  }
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-master',
5
5
  'version' => 'dev-master',
6
- 'reference' => '8113895acb1b5e77905739eccb0582fb83354a27',
6
+ 'reference' => '6f805b0806d24f9e44d293a13ca486fdf23c73ab',
7
7
  'type' => 'wordpress-plugin',
8
8
  'install_path' => __DIR__ . '/../../',
9
9
  'aliases' => array(),
@@ -13,7 +13,7 @@
13
13
  'automattic/newspack-blocks' => array(
14
14
  'pretty_version' => 'dev-master',
15
15
  'version' => 'dev-master',
16
- 'reference' => '8113895acb1b5e77905739eccb0582fb83354a27',
16
+ 'reference' => '6f805b0806d24f9e44d293a13ca486fdf23c73ab',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),