XCloner – Backup and Restore - Version 4.2.163

Version Description

= 3.0.3 = Please check changelog!

Download this release

Release Info

Developer watchful
Plugin Icon 128x128 XCloner – Backup and Restore
Version 4.2.163
Comparing to
See all releases

Code changes from version 4.2.161 to 4.2.163

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: backup, database backup, cloud backup, WordPress backup, WordPress migrati
5
  Requires at least: 3.0.1
6
  Requires PHP: 7.1
7
  Tested up to: 5.5
8
- Stable tag: 4.2.161
9
 
10
  XCloner is a backup plugin that allows you to safely back up and restore your WordPress sites. You can send site backups to SFTP, Dropbox, Amazon, Google Drive, Backblaze and other locations.
11
 
@@ -121,6 +121,7 @@ Of course, schedules can be adjusted accordingly to how often you update your si
121
  * Improved Google Drive integration
122
  * http(s) url email backup fix
123
  * design changes
 
124
 
125
  = 4.2.15 =
126
 
5
  Requires at least: 3.0.1
6
  Requires PHP: 7.1
7
  Tested up to: 5.5
8
+ Stable tag: 4.2.163
9
 
10
  XCloner is a backup plugin that allows you to safely back up and restore your WordPress sites. You can send site backups to SFTP, Dropbox, Amazon, Google Drive, Backblaze and other locations.
11
 
121
  * Improved Google Drive integration
122
  * http(s) url email backup fix
123
  * design changes
124
+ * security fixes
125
 
126
  = 4.2.15 =
127
 
includes/class-xcloner.php CHANGED
@@ -294,7 +294,7 @@ class Xcloner extends watchfulli\XClonerCore\Xcloner
294
  <?php
295
  if (function_exists('wp_create_nonce')) {
296
  echo "const XCLONER_WPNONCE = '".wp_create_nonce('xcloner-api-nonce')."';";
297
- }else{
298
  echo "const XCLONER_WPNONCE = null;";
299
  } ?>
300
 
@@ -555,6 +555,10 @@ class Xcloner extends watchfulli\XClonerCore\Xcloner
555
  */
556
  public function onedrive_auth_token()
557
  {
 
 
 
 
558
  $onedrive_expire_in = get_option('xcloner_onedrive_expires_in');
559
  $onedrive_refresh_token = get_option('xcloner_onedrive_refresh_token');
560
 
294
  <?php
295
  if (function_exists('wp_create_nonce')) {
296
  echo "const XCLONER_WPNONCE = '".wp_create_nonce('xcloner-api-nonce')."';";
297
+ } else {
298
  echo "const XCLONER_WPNONCE = null;";
299
  } ?>
300
 
555
  */
556
  public function onedrive_auth_token()
557
  {
558
+ if (!get_option('xcloner_onedrive_enable', 0)) {
559
+ return false;
560
+ }
561
+
562
  $onedrive_expire_in = get_option('xcloner_onedrive_expires_in');
563
  $onedrive_refresh_token = get_option('xcloner_onedrive_refresh_token');
564
 
vendor/watchfulli/xcloner-core/src/Xcloner_Api.php CHANGED
@@ -153,7 +153,9 @@ class Xcloner_Api
153
 
154
  $this->process_params($params);
155
 
156
- if (isset($_POST['id'])) {
 
 
157
  $this->form_params['backup_params']['backup_name'] = $this->xcloner_sanitization->sanitize_input_as_string($_POST['backup_name']);
158
  $this->form_params['backup_params']['email_notification'] = $this->xcloner_sanitization->sanitize_input_as_string($_POST['email_notification']);
159
  if ($_POST['diff_start_date']) {
153
 
154
  $this->process_params($params);
155
 
156
+ if ( isset( $_POST['id'] ) ) {
157
+
158
+ $_POST['id'] = $this->xcloner_sanitization->sanitize_input_as_int( $_POST['id'] );
159
  $this->form_params['backup_params']['backup_name'] = $this->xcloner_sanitization->sanitize_input_as_string($_POST['backup_name']);
160
  $this->form_params['backup_params']['email_notification'] = $this->xcloner_sanitization->sanitize_input_as_string($_POST['email_notification']);
161
  if ($_POST['diff_start_date']) {
vendor/watchfulli/xcloner-core/src/Xcloner_File_System.php CHANGED
@@ -312,7 +312,9 @@ class Xcloner_File_System
312
  if ($this->is_multipart($backup_name)) {
313
  $backup_parts = $this->get_multipart_files($backup_name);
314
  foreach ($backup_parts as $part_file) {
315
- $backup_size += $this->get_storage_filesystem()->getSize($part_file);
 
 
316
  }
317
  }
318
 
312
  if ($this->is_multipart($backup_name)) {
313
  $backup_parts = $this->get_multipart_files($backup_name);
314
  foreach ($backup_parts as $part_file) {
315
+ if ($this->get_storage_filesystem()->has($part_file)) {
316
+ $backup_size += $this->get_storage_filesystem()->getSize($part_file);
317
+ }
318
  }
319
  }
320
 
vendor/watchfulli/xcloner-core/src/Xcloner_Settings.php CHANGED
@@ -649,7 +649,7 @@ class Xcloner_Settings
649
  array(
650
  'xcloner_mysql_password',
651
  __('Wordpress mysql password', 'xcloner-backup-and-restore'),
652
- $this->get_db_username(),
653
  //'disabled'
654
  )
655
  );
649
  array(
650
  'xcloner_mysql_password',
651
  __('Wordpress mysql password', 'xcloner-backup-and-restore'),
652
+ $this->get_db_password(),
653
  //'disabled'
654
  )
655
  );
xcloner.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: XCloner - Site Backup and Restore
16
  * Plugin URI: https://xcloner.com/
17
  * Description: XCloner is a tool that will help you manage your website backups, generate/restore/move so your website will be always secured! With XCloner you will be able to clone your site to any other location with just a few clicks, as well as transfer the backup archives to remote FTP, SFTP, DropBox, Amazon S3, Google Drive, WebDAV, Backblaze, Azure accounts.
18
- * Version: 4.2.161
19
  * Author: watchful
20
  * Author URI: https://watchful.net/
21
  * License: GPL-2.0+
15
  * Plugin Name: XCloner - Site Backup and Restore
16
  * Plugin URI: https://xcloner.com/
17
  * Description: XCloner is a tool that will help you manage your website backups, generate/restore/move so your website will be always secured! With XCloner you will be able to clone your site to any other location with just a few clicks, as well as transfer the backup archives to remote FTP, SFTP, DropBox, Amazon S3, Google Drive, WebDAV, Backblaze, Azure accounts.
18
+ * Version: 4.2.163
19
  * Author: watchful
20
  * Author URI: https://watchful.net/
21
  * License: GPL-2.0+