UpdraftPlus WordPress Backup Plugin - Version 1.3.12

Version Description

  • 01/25/2013 =
  • 1.3.0 to 1.3.8 had a fatal flaw for people with large backups.
  • 1.3.0 to 1.3.9 gave erroneous information in the email reports on what the backup contained.
  • Fixed DropBox authentication for some users who were having problems
Download this release

Release Info

Developer DavidAnderson
Plugin Icon 128x128 UpdraftPlus WordPress Backup Plugin
Version 1.3.12
Comparing to
See all releases

Code changes from version 1.3.10 to 1.3.12

includes/Dropbox/OAuth/Storage/Encrypter.php CHANGED
@@ -50,7 +50,7 @@ class Dropbox_Encrypter
50
  public function encrypt($token)
51
  {
52
  $iv = mcrypt_create_iv(self::IV_SIZE, self::IV_SOURCE);
53
- $cipherText = mcrypt_encrypt(self::CIPHER, $this->key, $token, self::MODE, $iv);
54
  return base64_encode($iv . $cipherText);
55
  }
56
 
@@ -64,7 +64,7 @@ class Dropbox_Encrypter
64
  $cipherText = base64_decode($cipherText);
65
  $iv = substr($cipherText, 0, self::IV_SIZE);
66
  $cipherText = substr($cipherText, self::IV_SIZE);
67
- $token = mcrypt_decrypt(self::CIPHER, $this->key, $cipherText, self::MODE, $iv);
68
  return $token;
69
  }
70
  }
50
  public function encrypt($token)
51
  {
52
  $iv = mcrypt_create_iv(self::IV_SIZE, self::IV_SOURCE);
53
+ $cipherText = @mcrypt_encrypt(self::CIPHER, $this->key, $token, self::MODE, $iv);
54
  return base64_encode($iv . $cipherText);
55
  }
56
 
64
  $cipherText = base64_decode($cipherText);
65
  $iv = substr($cipherText, 0, self::IV_SIZE);
66
  $cipherText = substr($cipherText, self::IV_SIZE);
67
+ $token = @mcrypt_decrypt(self::CIPHER, $this->key, $cipherText, self::MODE, $iv);
68
  return $token;
69
  }
70
  }
methods/googledrive.php CHANGED
@@ -81,10 +81,10 @@ class UpdraftPlus_BackupModule_googledrive {
81
  $json_values = json_decode( $result['body'], true );
82
  if ( isset( $json_values['refresh_token'] ) ) {
83
  UpdraftPlus_Options::update_updraft_option('updraft_googledrive_token', $json_values['refresh_token']); // Save token
84
- header('Location: '.admin_url('options-general.php?page=updraftplus&message=' . __( 'Google Drive authorization was successful.', 'updraftplus' ) ) );
85
  }
86
  else {
87
- header('Location: '.admin_url('options-general.php?page=updraftplus&error=' . __( 'No refresh token was received!', 'updraftplus' ) ) );
88
  }
89
  }
90
  }
@@ -316,7 +316,7 @@ class UpdraftPlus_BackupModule_googledrive {
316
  <th>Google Drive:</th>
317
  <td>
318
  <p><a href="http://david.dw-perspective.org.uk/da/index.php/computer-resources/updraftplus-googledrive-authorisation/"><strong>For longer help, including screenshots, follow this link. The description below is sufficient for more expert users.</strong></a></p>
319
- <p><a href="https://code.google.com/apis/console/">Follow this link to your Google API Console</a>, and there create a Client ID in the API Access section. Select 'Web Application' as the application type.</p><p>You must add <kbd><?php echo admin_url('options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth'); ?></kbd> as the authorised redirect URI when asked. N.B. If you install UpdraftPlus on several WordPress sites, then you cannot re-use your client ID; you must create a new one from your Google API console for each blog.
320
 
321
  <?php
322
  if (!class_exists('SimpleXMLElement')) { echo " <b>WARNING:</b> You do not have the SimpleXMLElement installed. Google Drive backups will <b>not</b> work until you do."; }
@@ -327,7 +327,7 @@ class UpdraftPlus_BackupModule_googledrive {
327
 
328
  <tr class="updraftplusmethod googledrive">
329
  <th>Google Drive Client ID:</th>
330
- <td><input type="text" autocomplete="off" style="width:332px" name="updraft_googledrive_clientid" value="<?php echo htmlspecialchars(UpdraftPlus_Options::get_updraft_option('updraft_googledrive_clientid')) ?>" /></td>
331
  </tr>
332
  <tr class="updraftplusmethod googledrive">
333
  <th>Google Drive Client Secret:</th>
81
  $json_values = json_decode( $result['body'], true );
82
  if ( isset( $json_values['refresh_token'] ) ) {
83
  UpdraftPlus_Options::update_updraft_option('updraft_googledrive_token', $json_values['refresh_token']); // Save token
84
+ header('Location: '.admin_url('options-general.php?page=updraftplus&message=' . __( 'Google Drive authorisation was successful.', 'updraftplus' ) ) );
85
  }
86
  else {
87
+ header('Location: '.admin_url('options-general.php?page=updraftplus&error=' . __( 'No refresh token was received from Google. This often means that you entered your client secret wrongly, or that you have not yet re-authenticated (below) since correcting it. Re-check it, then follow the link to authenticate again. Finally, if that does not work, then use expert mode to wipe all your settings, create a new Google client ID/secret, and start again.', 'updraftplus' ) ) );
88
  }
89
  }
90
  }
316
  <th>Google Drive:</th>
317
  <td>
318
  <p><a href="http://david.dw-perspective.org.uk/da/index.php/computer-resources/updraftplus-googledrive-authorisation/"><strong>For longer help, including screenshots, follow this link. The description below is sufficient for more expert users.</strong></a></p>
319
+ <p><a href="https://code.google.com/apis/console/">Follow this link to your Google API Console</a>, and there create a Client ID in the API Access section. Select 'Web Application' as the application type.</p><p>You must add <kbd><?php echo admin_url('options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth'); ?></kbd> as the authorised redirect URI (under &quot;More Options&quot;) when asked. N.B. If you install UpdraftPlus on several WordPress sites, then you cannot re-use your client ID; you must create a new one from your Google API console for each blog.
320
 
321
  <?php
322
  if (!class_exists('SimpleXMLElement')) { echo " <b>WARNING:</b> You do not have the SimpleXMLElement installed. Google Drive backups will <b>not</b> work until you do."; }
327
 
328
  <tr class="updraftplusmethod googledrive">
329
  <th>Google Drive Client ID:</th>
330
+ <td><input type="text" autocomplete="off" style="width:332px" name="updraft_googledrive_clientid" value="<?php echo htmlspecialchars(UpdraftPlus_Options::get_updraft_option('updraft_googledrive_clientid')) ?>" /><br><em>If Google later shows you the message &quot;invalid_client&quot;, then you did not enter a valid client ID here.</em></td>
331
  </tr>
332
  <tr class="updraftplusmethod googledrive">
333
  <th>Google Drive Client Secret:</th>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: David Anderson
3
  Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, ftp, cloud, back up, multisite
4
  Requires at least: 3.2
5
  Tested up to: 3.5.1
6
- Stable tag: 1.3.10
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
@@ -141,9 +141,10 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
141
 
142
  == Changelog ==
143
 
144
- = 1.3.10 - 01/25/2013 =
145
  * 1.3.0 to 1.3.8 had a fatal flaw for people with large backups.
146
  * 1.3.0 to 1.3.9 gave erroneous information in the email reports on what the backup contained.
 
147
 
148
  = 1.3.8 - 01/24/2013 =
149
  * Fixed faulty assumptions in 'resume' code, now leading to more reliable resuming
3
  Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, ftp, cloud, back up, multisite
4
  Requires at least: 3.2
5
  Tested up to: 3.5.1
6
+ Stable tag: 1.3.12
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.3.12 - 01/25/2013 =
145
  * 1.3.0 to 1.3.8 had a fatal flaw for people with large backups.
146
  * 1.3.0 to 1.3.9 gave erroneous information in the email reports on what the backup contained.
147
+ * Fixed DropBox authentication for some users who were having problems
148
 
149
  = 1.3.8 - 01/24/2013 =
150
  * Fixed faulty assumptions in 'resume' code, now leading to more reliable resuming
updraftplus.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Backup and restore: your content and database can be automatically backed up to Amazon S3, Dropbox, Google Drive, FTP or email, on separate schedules.
6
  Author: David Anderson.
7
- Version: 1.3.10
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
@@ -79,7 +79,7 @@ if (!class_exists('UpdraftPlus_Options')) require_once(UPDRAFTPLUS_DIR.'/options
79
 
80
  class UpdraftPlus {
81
 
82
- var $version = '1.3.10';
83
  var $plugin_title = 'UpdraftPlus Backup/Restore';
84
 
85
  // Choices will be shown in the admin menu in the order used here
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Backup and restore: your content and database can be automatically backed up to Amazon S3, Dropbox, Google Drive, FTP or email, on separate schedules.
6
  Author: David Anderson.
7
+ Version: 1.3.12
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
79
 
80
  class UpdraftPlus {
81
 
82
+ var $version = '1.3.12';
83
  var $plugin_title = 'UpdraftPlus Backup/Restore';
84
 
85
  // Choices will be shown in the admin menu in the order used here