Skip to content

Commit

Permalink
Merge pull request #1140 from live-composer/release_1_5_45
Browse files Browse the repository at this point in the history
fixed live composer issue raised security patch
  • Loading branch information
nitin-blueastral authored Jul 20, 2024
2 parents c37e2d6 + a54b5c9 commit 672fc7b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ds-live-composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://www.livecomposerplugin.com
* Description: Page builder for WordPress with drag and drop header/footer editing.
* Author: Live Composer Team
* Version: 1.5.44
* Version: 1.5.45
* Author URI: https://livecomposerplugin.com
* License: GPL3
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -41,7 +41,7 @@
* Constants
*/

define( 'DS_LIVE_COMPOSER_VER', '1.5.44' );
define( 'DS_LIVE_COMPOSER_VER', '1.5.45' );

define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
Expand Down
14 changes: 11 additions & 3 deletions includes/display-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,11 @@ function dslc_json_decode( $raw_code, $ignore_migration = false ) {

}
else{
$raw_code = unserialize( maybe_serialize($raw_code) ,['allowed_classes' => false]);

if(is_serialized($raw_code))
{
$raw_code = unserialize($raw_code,['allowed_classes' => false]);
// $raw_code = unserialize( maybe_serialize($raw_code));
}
// Array already provided. Do nothing.
if ( is_array( $raw_code ) ) {
return $raw_code;
Expand Down Expand Up @@ -990,7 +993,12 @@ function dslc_json_decode( $raw_code, $ignore_migration = false ) {
} else {
// 1. it's old code of the module settings serialized + base64.
// Get array out of it.
$decoded = unserialize( $decoded_base64,['allowed_classes' => false] );
// $decoded = unserialize( $decoded_base64,['allowed_classes' => false] );
if(is_serialized($decoded_base64))
{
$decoded = unserialize( $decoded_base64,['allowed_classes' => false] );
}
// $decoded = unserialize( $decoded_base64);

// Add a marker indicating that this module
// was imported from shortcode format.
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: LiveComposer
Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
Requires at least: 4.7
Tested up to: 6.5
Stable tag: 1.5.44
Tested up to: 6.6
Stable tag: 1.5.45
License: GPLv3

Page builder for WordPress with drag and drop header/footer editing, responsive settings, and animations. Compatible with Gutenberg block editor.
Expand Down Expand Up @@ -199,6 +199,9 @@ In most of the cases, this is because the homepage is not a real WordPress page,
* 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
* 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.

= 1.5.45 - July 20 2024 =
* Security fixes

= 1.5.44 - July 10 2024 =
* Security fixes

Expand Down

0 comments on commit 672fc7b

Please sign in to comment.