Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version 1.14.7

Version Description

Release date: November 12th, 2020

  • Update: Prevent easy apache cache files in backups.
  • Bug fix: Fixed nonce errors when downloading remote archives.
Download this release

Release Info

Developer boldgrid
Plugin Icon 128x128 Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Version 1.14.7
Comparing to
See all releases

Code changes from version branch.issue-397.202011110919 to 1.14.7

admin/class-boldgrid-backup-admin-folder-exclusion.php CHANGED
@@ -141,7 +141,6 @@ class Boldgrid_Backup_Admin_Folder_Exclusion {
141
  * @return bool
142
  */
143
  public function allow_file( $file ) {
144
-
145
  // If this file is in our backup directory, do not allow it.
146
  if ( $this->core->backup_dir->file_in_dir( ABSPATH . $file, true ) ) {
147
  return false;
@@ -408,22 +407,7 @@ class Boldgrid_Backup_Admin_Folder_Exclusion {
408
  * @return bool
409
  */
410
  public function is_banned( $filepath ) {
411
- $banned = array(
412
- /*
413
- * The ea-php-cli cache symlink. This one has appeared several times, and therefore is now
414
- * banned. The following description has been taken from the cPanel website:
415
- *
416
- * The first time you call one of the ea-php-cli binaries, the system creates the .ea-php-cli.cache
417
- * symlink to the PHP version that the directory requires. This symlink provides a quick
418
- * way for the system to determine the proper version of PHP and reads as broken by design.
419
- * For example, if the PHP script requires PHP 7.0, then the symlink will point to ea-php70.
420
- * cPanel creates broken symlinks by design and will recreate any removed symlinks the next
421
- * time that you run the script. You can safely ignore them.
422
- *
423
- * @link https://wordpress.org/support/topic/total-upkeep-error-creating-backup/
424
- */
425
- '.ea-php-cli.cache',
426
- );
427
 
428
  // @todo Allow for regular expressions in the future.
429
  return in_array( basename( $filepath ), $banned, true );
141
  * @return bool
142
  */
143
  public function allow_file( $file ) {
 
144
  // If this file is in our backup directory, do not allow it.
145
  if ( $this->core->backup_dir->file_in_dir( ABSPATH . $file, true ) ) {
146
  return false;
407
  * @return bool
408
  */
409
  public function is_banned( $filepath ) {
410
+ $banned = Boldgrid_Backup_Admin::get_configs()['banned'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
 
412
  // @todo Allow for regular expressions in the future.
413
  return in_array( basename( $filepath ), $banned, true );
admin/js/boldgrid-backup-admin-archive-details.js CHANGED
@@ -78,7 +78,7 @@ BoldGrid.ArchiveDetails = function( $ ) {
78
  data = {
79
  action: 'boldgrid_backup_remote_storage_download_' + provider,
80
  filename: $( '#filename' ).val(),
81
- security: $( '#_wpnonce' ).val()
82
  },
83
  $spinner = $button.next( '.spinner' ),
84
  $wpbody = $body.find( '#wpbody' );
78
  data = {
79
  action: 'boldgrid_backup_remote_storage_download_' + provider,
80
  filename: $( '#filename' ).val(),
81
+ security: $( '#bgbkup_archive_details_nonce' ).val()
82
  },
83
  $spinner = $button.next( '.spinner' ),
84
  $wpbody = $body.find( '#wpbody' );
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
- * Version: 1.14.6
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
+ * Version: 1.14.7
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1605106488">
3
- <project timestamp="1605106488">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
@@ -2269,7 +2269,7 @@
2269
  <line num="284" type="stmt" count="7"/>
2270
  <line num="287" type="stmt" count="7"/>
2271
  <line num="288" type="stmt" count="7"/>
2272
- <line num="289" type="stmt" count="7"/>
2273
  <line num="292" type="stmt" count="7"/>
2274
  <line num="294" type="stmt" count="7"/>
2275
  <line num="295" type="stmt" count="7"/>
@@ -5290,7 +5290,7 @@
5290
  </file>
5291
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-folder-exclusion.php">
5292
  <class name="Boldgrid_Backup_Admin_Folder_Exclusion" namespace="global" fullPackage="Boldgrid.Backup.Admin.Folder">
5293
- <metrics complexity="59" methods="11" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="155" coveredstatements="78" elements="166" coveredelements="82"/>
5294
  </class>
5295
  <line num="113" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5296
  <line num="114" type="stmt" count="29"/>
@@ -5298,70 +5298,71 @@
5298
  <line num="132" type="stmt" count="29"/>
5299
  <line num="133" type="stmt" count="29"/>
5300
  <line num="143" type="method" name="allow_file" visibility="public" complexity="12" crap="13.58" count="4"/>
5301
- <line num="146" type="stmt" count="4"/>
5302
- <line num="147" type="stmt" count="0"/>
5303
- <line num="151" type="stmt" count="4"/>
5304
- <line num="152" type="stmt" count="0"/>
5305
- <line num="155" type="stmt" count="4"/>
5306
- <line num="156" type="stmt" count="0"/>
 
5307
  <line num="160" type="stmt" count="4"/>
5308
- <line num="161" type="stmt" count="4"/>
5309
  <line num="164" type="stmt" count="4"/>
5310
- <line num="165" type="stmt" count="4"/>
5311
  <line num="168" type="stmt" count="4"/>
5312
- <line num="169" type="stmt" count="4"/>
5313
  <line num="171" type="stmt" count="4"/>
5314
  <line num="172" type="stmt" count="4"/>
5315
  <line num="173" type="stmt" count="4"/>
5316
  <line num="174" type="stmt" count="4"/>
5317
- <line num="175" type="stmt" count="4"/>
5318
  <line num="178" type="stmt" count="4"/>
5319
- <line num="179" type="stmt" count="4"/>
5320
- <line num="183" type="stmt" count="4"/>
5321
- <line num="184" type="stmt" count="0"/>
5322
  <line num="187" type="stmt" count="4"/>
5323
- <line num="188" type="stmt" count="4"/>
5324
  <line num="189" type="stmt" count="0"/>
5325
- <line num="190" type="stmt" count="0"/>
5326
- <line num="191" type="stmt" count="4"/>
5327
- <line num="193" type="stmt" count="4"/>
5328
- <line num="205" type="method" name="email_part" visibility="public" complexity="5" crap="5" count="4"/>
5329
- <line num="206" type="stmt" count="4"/>
5330
  <line num="208" type="stmt" count="4"/>
5331
- <line num="209" type="stmt" count="4"/>
5332
  <line num="211" type="stmt" count="4"/>
5333
  <line num="212" type="stmt" count="4"/>
5334
- <line num="213" type="stmt" count="4"/>
5335
  <line num="215" type="stmt" count="4"/>
5336
- <line num="216" type="stmt" count="4"/>
5337
  <line num="218" type="stmt" count="4"/>
5338
  <line num="219" type="stmt" count="4"/>
5339
  <line num="220" type="stmt" count="4"/>
5340
- <line num="221" type="stmt" count="4"/>
5341
  <line num="223" type="stmt" count="4"/>
5342
- <line num="224" type="stmt" count="4"/>
5343
  <line num="226" type="stmt" count="4"/>
5344
  <line num="227" type="stmt" count="4"/>
5345
  <line num="228" type="stmt" count="4"/>
5346
- <line num="229" type="stmt" count="4"/>
5347
- <line num="231" type="stmt" count="4"/>
5348
- <line num="254" type="method" name="create_pattern" visibility="public" complexity="2" crap="2" count="4"/>
5349
- <line num="255" type="stmt" count="4"/>
5350
- <line num="258" type="stmt" count="4"/>
5351
  <line num="261" type="stmt" count="4"/>
5352
- <line num="262" type="stmt" count="4"/>
5353
- <line num="272" type="stmt" count="4"/>
5354
- <line num="279" type="stmt" count="4"/>
5355
- <line num="285" type="stmt" count="4"/>
5356
- <line num="287" type="stmt" count="4"/>
5357
- <line num="295" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
5358
  <line num="296" type="stmt" count="0"/>
5359
  <line num="297" type="stmt" count="0"/>
5360
  <line num="298" type="stmt" count="0"/>
5361
  <line num="299" type="stmt" count="0"/>
5362
  <line num="300" type="stmt" count="0"/>
5363
- <line num="301" type="stmt" count="0"/>
5364
- <line num="303" type="stmt" count="0"/>
5365
  <line num="305" type="stmt" count="0"/>
5366
  <line num="306" type="stmt" count="0"/>
5367
  <line num="307" type="stmt" count="0"/>
@@ -5369,96 +5370,94 @@
5369
  <line num="309" type="stmt" count="0"/>
5370
  <line num="310" type="stmt" count="0"/>
5371
  <line num="311" type="stmt" count="0"/>
5372
- <line num="312" type="stmt" count="0"/>
5373
  <line num="315" type="stmt" count="0"/>
5374
  <line num="316" type="stmt" count="0"/>
5375
- <line num="317" type="stmt" count="0"/>
5376
- <line num="319" type="stmt" count="0"/>
5377
  <line num="321" type="stmt" count="0"/>
5378
  <line num="322" type="stmt" count="0"/>
5379
- <line num="323" type="stmt" count="0"/>
5380
- <line num="334" type="method" name="from_settings" visibility="public" complexity="16" crap="33.31" count="15"/>
5381
- <line num="335" type="stmt" count="15"/>
5382
- <line num="336" type="stmt" count="0"/>
5383
  <line num="339" type="stmt" count="15"/>
5384
- <line num="340" type="stmt" count="15"/>
5385
- <line num="350" type="stmt" count="15"/>
5386
- <line num="351" type="stmt" count="0"/>
5387
- <line num="358" type="stmt" count="15"/>
5388
  <line num="359" type="stmt" count="0"/>
5389
- <line num="360" type="stmt" count="0"/>
5390
- <line num="363" type="stmt" count="15"/>
5391
- <line num="364" type="stmt" count="14"/>
5392
- <line num="367" type="stmt" count="3"/>
5393
- <line num="368" type="stmt" count="0"/>
5394
- <line num="369" type="stmt" count="3"/>
5395
- <line num="374" type="stmt" count="0"/>
5396
- <line num="375" type="stmt" count="3"/>
5397
- <line num="383" type="stmt" count="1"/>
5398
- <line num="384" type="stmt" count="3"/>
5399
  <line num="385" type="stmt" count="0"/>
5400
  <line num="386" type="stmt" count="0"/>
5401
  <line num="387" type="stmt" count="0"/>
5402
  <line num="388" type="stmt" count="0"/>
5403
- <line num="389" type="stmt" count="0"/>
5404
- <line num="391" type="stmt" count="3"/>
5405
  <line num="392" type="stmt" count="2"/>
5406
- <line num="393" type="stmt" count="2"/>
5407
- <line num="395" type="stmt" count="3"/>
5408
- <line num="410" type="method" name="is_banned" visibility="public" complexity="1" crap="1" count="4"/>
5409
- <line num="425" type="stmt" count="4"/>
5410
- <line num="426" type="stmt" count="4"/>
5411
  <line num="429" type="stmt" count="4"/>
5412
- <line num="444" type="method" name="is_match" visibility="public" complexity="3" crap="3.02" count="4"/>
5413
- <line num="445" type="stmt" count="4"/>
5414
- <line num="446" type="stmt" count="0"/>
5415
- <line num="450" type="stmt" count="4"/>
5416
- <line num="451" type="stmt" count="4"/>
5417
- <line num="458" type="stmt" count="4"/>
5418
- <line num="460" type="stmt" count="4"/>
5419
- <line num="462" type="stmt" count="4"/>
5420
- <line num="464" type="stmt" count="4"/>
5421
- <line num="474" type="method" name="is_using_defaults" visibility="public" complexity="1" crap="2" count="0"/>
5422
- <line num="475" type="stmt" count="0"/>
 
 
5423
  <line num="477" type="stmt" count="0"/>
5424
- <line num="488" type="method" name="from_post" visibility="public" complexity="9" crap="90" count="0"/>
5425
- <line num="489" type="stmt" count="0"/>
5426
- <line num="490" type="stmt" count="0"/>
 
 
5427
  <line num="493" type="stmt" count="0"/>
 
 
5428
  <line num="496" type="stmt" count="0"/>
 
 
5429
  <line num="501" type="stmt" count="0"/>
5430
- <line num="502" type="stmt" count="0"/>
5431
  <line num="503" type="stmt" count="0"/>
5432
- <line num="508" type="stmt" count="0"/>
5433
- <line num="509" type="stmt" count="0"/>
5434
- <line num="510" type="stmt" count="0"/>
5435
- <line num="511" type="stmt" count="0"/>
5436
  <line num="512" type="stmt" count="0"/>
5437
  <line num="513" type="stmt" count="0"/>
5438
  <line num="514" type="stmt" count="0"/>
 
5439
  <line num="517" type="stmt" count="0"/>
5440
  <line num="519" type="stmt" count="0"/>
5441
- <line num="527" type="method" name="wp_ajax_preview" visibility="public" complexity="8" crap="72" count="0"/>
 
 
 
 
5442
  <line num="528" type="stmt" count="0"/>
5443
  <line num="529" type="stmt" count="0"/>
5444
- <line num="530" type="stmt" count="0"/>
5445
- <line num="532" type="stmt" count="0"/>
5446
  <line num="533" type="stmt" count="0"/>
 
5447
  <line num="535" type="stmt" count="0"/>
5448
- <line num="536" type="stmt" count="0"/>
5449
  <line num="537" type="stmt" count="0"/>
5450
- <line num="539" type="stmt" count="0"/>
5451
- <line num="541" type="stmt" count="0"/>
5452
- <line num="543" type="stmt" count="0"/>
5453
- <line num="544" type="stmt" count="0"/>
5454
- <line num="545" type="stmt" count="0"/>
5455
- <line num="547" type="stmt" count="0"/>
5456
- <line num="549" type="stmt" count="0"/>
5457
- <line num="550" type="stmt" count="0"/>
5458
- <line num="551" type="stmt" count="0"/>
5459
- <line num="553" type="stmt" count="0"/>
5460
- <line num="554" type="stmt" count="0"/>
5461
- <metrics loc="555" ncloc="263" classes="1" methods="11" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="155" coveredstatements="78" elements="166" coveredelements="82"/>
5462
  </file>
5463
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-go-pro.php">
5464
  <class name="Boldgrid_Backup_Admin_Go_Pro" namespace="global" fullPackage="Boldgrid.Backup.Admin.Go">
@@ -8561,9 +8560,9 @@
8561
  <line num="178" type="stmt" count="0"/>
8562
  <line num="179" type="stmt" count="0"/>
8563
  <line num="180" type="stmt" count="0"/>
8564
- <line num="191" type="method" name="get_configs" visibility="public" complexity="6" crap="6.56" count="29"/>
8565
- <line num="193" type="stmt" count="29"/>
8566
- <line num="194" type="stmt" count="29"/>
8567
  <line num="198" type="stmt" count="1"/>
8568
  <line num="201" type="stmt" count="1"/>
8569
  <line num="202" type="stmt" count="1"/>
@@ -15869,8 +15868,10 @@
15869
  <line num="105" type="stmt" count="1"/>
15870
  <line num="106" type="stmt" count="1"/>
15871
  <line num="107" type="stmt" count="1"/>
15872
- <line num="108" type="stmt" count="1"/>
15873
- <metrics loc="108" ncloc="60" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="41" elements="44" coveredelements="41"/>
 
 
15874
  </file>
15875
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.rating-prompt.php">
15876
  <line num="17" type="stmt" count="0"/>
@@ -76983,7 +76984,7 @@
76983
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76984
  </file>
76985
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76986
- <class name="ComposerStaticInitef2257ed178537687e80dd165545d5aa" namespace="Composer\Autoload">
76987
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76988
  </class>
76989
  <line num="80" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -77148,7 +77149,7 @@
77148
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
77149
  </file>
77150
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
77151
- <class name="ComposerAutoloaderInitef2257ed178537687e80dd165545d5aa" namespace="global">
77152
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="42" coveredstatements="0" elements="44" coveredelements="0"/>
77153
  </class>
77154
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -96479,6 +96480,6 @@
96479
  <line num="16" type="stmt" count="0"/>
96480
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96481
  </file>
96482
- <metrics files="967" loc="193911" ncloc="118284" classes="873" methods="3614" coveredmethods="310" conditionals="0" coveredconditionals="0" statements="86928" coveredstatements="4584" elements="90542" coveredelements="4894"/>
96483
  </project>
96484
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1605219028">
3
+ <project timestamp="1605219028">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
2269
  <line num="284" type="stmt" count="7"/>
2270
  <line num="287" type="stmt" count="7"/>
2271
  <line num="288" type="stmt" count="7"/>
2272
+ <line num="289" type="stmt" count="5"/>
2273
  <line num="292" type="stmt" count="7"/>
2274
  <line num="294" type="stmt" count="7"/>
2275
  <line num="295" type="stmt" count="7"/>
5290
  </file>
5291
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-folder-exclusion.php">
5292
  <class name="Boldgrid_Backup_Admin_Folder_Exclusion" namespace="global" fullPackage="Boldgrid.Backup.Admin.Folder">
5293
+ <metrics complexity="59" methods="11" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="154" coveredstatements="77" elements="165" coveredelements="81"/>
5294
  </class>
5295
  <line num="113" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5296
  <line num="114" type="stmt" count="29"/>
5298
  <line num="132" type="stmt" count="29"/>
5299
  <line num="133" type="stmt" count="29"/>
5300
  <line num="143" type="method" name="allow_file" visibility="public" complexity="12" crap="13.58" count="4"/>
5301
+ <line num="145" type="stmt" count="4"/>
5302
+ <line num="146" type="stmt" count="0"/>
5303
+ <line num="150" type="stmt" count="4"/>
5304
+ <line num="151" type="stmt" count="0"/>
5305
+ <line num="154" type="stmt" count="4"/>
5306
+ <line num="155" type="stmt" count="0"/>
5307
+ <line num="159" type="stmt" count="4"/>
5308
  <line num="160" type="stmt" count="4"/>
5309
+ <line num="163" type="stmt" count="4"/>
5310
  <line num="164" type="stmt" count="4"/>
5311
+ <line num="167" type="stmt" count="4"/>
5312
  <line num="168" type="stmt" count="4"/>
5313
+ <line num="170" type="stmt" count="4"/>
5314
  <line num="171" type="stmt" count="4"/>
5315
  <line num="172" type="stmt" count="4"/>
5316
  <line num="173" type="stmt" count="4"/>
5317
  <line num="174" type="stmt" count="4"/>
5318
+ <line num="177" type="stmt" count="4"/>
5319
  <line num="178" type="stmt" count="4"/>
5320
+ <line num="182" type="stmt" count="4"/>
5321
+ <line num="183" type="stmt" count="0"/>
5322
+ <line num="186" type="stmt" count="4"/>
5323
  <line num="187" type="stmt" count="4"/>
5324
+ <line num="188" type="stmt" count="0"/>
5325
  <line num="189" type="stmt" count="0"/>
5326
+ <line num="190" type="stmt" count="4"/>
5327
+ <line num="192" type="stmt" count="4"/>
5328
+ <line num="204" type="method" name="email_part" visibility="public" complexity="5" crap="5" count="4"/>
5329
+ <line num="205" type="stmt" count="4"/>
5330
+ <line num="207" type="stmt" count="4"/>
5331
  <line num="208" type="stmt" count="4"/>
5332
+ <line num="210" type="stmt" count="4"/>
5333
  <line num="211" type="stmt" count="4"/>
5334
  <line num="212" type="stmt" count="4"/>
5335
+ <line num="214" type="stmt" count="4"/>
5336
  <line num="215" type="stmt" count="4"/>
5337
+ <line num="217" type="stmt" count="4"/>
5338
  <line num="218" type="stmt" count="4"/>
5339
  <line num="219" type="stmt" count="4"/>
5340
  <line num="220" type="stmt" count="4"/>
5341
+ <line num="222" type="stmt" count="4"/>
5342
  <line num="223" type="stmt" count="4"/>
5343
+ <line num="225" type="stmt" count="4"/>
5344
  <line num="226" type="stmt" count="4"/>
5345
  <line num="227" type="stmt" count="4"/>
5346
  <line num="228" type="stmt" count="4"/>
5347
+ <line num="230" type="stmt" count="4"/>
5348
+ <line num="253" type="method" name="create_pattern" visibility="public" complexity="2" crap="2" count="4"/>
5349
+ <line num="254" type="stmt" count="4"/>
5350
+ <line num="257" type="stmt" count="4"/>
5351
+ <line num="260" type="stmt" count="4"/>
5352
  <line num="261" type="stmt" count="4"/>
5353
+ <line num="271" type="stmt" count="4"/>
5354
+ <line num="278" type="stmt" count="4"/>
5355
+ <line num="284" type="stmt" count="4"/>
5356
+ <line num="286" type="stmt" count="4"/>
5357
+ <line num="294" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
5358
+ <line num="295" type="stmt" count="0"/>
5359
  <line num="296" type="stmt" count="0"/>
5360
  <line num="297" type="stmt" count="0"/>
5361
  <line num="298" type="stmt" count="0"/>
5362
  <line num="299" type="stmt" count="0"/>
5363
  <line num="300" type="stmt" count="0"/>
5364
+ <line num="302" type="stmt" count="0"/>
5365
+ <line num="304" type="stmt" count="0"/>
5366
  <line num="305" type="stmt" count="0"/>
5367
  <line num="306" type="stmt" count="0"/>
5368
  <line num="307" type="stmt" count="0"/>
5370
  <line num="309" type="stmt" count="0"/>
5371
  <line num="310" type="stmt" count="0"/>
5372
  <line num="311" type="stmt" count="0"/>
5373
+ <line num="314" type="stmt" count="0"/>
5374
  <line num="315" type="stmt" count="0"/>
5375
  <line num="316" type="stmt" count="0"/>
5376
+ <line num="318" type="stmt" count="0"/>
5377
+ <line num="320" type="stmt" count="0"/>
5378
  <line num="321" type="stmt" count="0"/>
5379
  <line num="322" type="stmt" count="0"/>
5380
+ <line num="333" type="method" name="from_settings" visibility="public" complexity="16" crap="33.31" count="15"/>
5381
+ <line num="334" type="stmt" count="15"/>
5382
+ <line num="335" type="stmt" count="0"/>
5383
+ <line num="338" type="stmt" count="15"/>
5384
  <line num="339" type="stmt" count="15"/>
5385
+ <line num="349" type="stmt" count="15"/>
5386
+ <line num="350" type="stmt" count="0"/>
5387
+ <line num="357" type="stmt" count="15"/>
5388
+ <line num="358" type="stmt" count="0"/>
5389
  <line num="359" type="stmt" count="0"/>
5390
+ <line num="362" type="stmt" count="15"/>
5391
+ <line num="363" type="stmt" count="14"/>
5392
+ <line num="366" type="stmt" count="3"/>
5393
+ <line num="367" type="stmt" count="0"/>
5394
+ <line num="368" type="stmt" count="3"/>
5395
+ <line num="373" type="stmt" count="0"/>
5396
+ <line num="374" type="stmt" count="3"/>
5397
+ <line num="382" type="stmt" count="1"/>
5398
+ <line num="383" type="stmt" count="3"/>
5399
+ <line num="384" type="stmt" count="0"/>
5400
  <line num="385" type="stmt" count="0"/>
5401
  <line num="386" type="stmt" count="0"/>
5402
  <line num="387" type="stmt" count="0"/>
5403
  <line num="388" type="stmt" count="0"/>
5404
+ <line num="390" type="stmt" count="3"/>
5405
+ <line num="391" type="stmt" count="2"/>
5406
  <line num="392" type="stmt" count="2"/>
5407
+ <line num="394" type="stmt" count="3"/>
5408
+ <line num="409" type="method" name="is_banned" visibility="public" complexity="1" crap="1" count="4"/>
5409
+ <line num="410" type="stmt" count="4"/>
5410
+ <line num="413" type="stmt" count="4"/>
5411
+ <line num="428" type="method" name="is_match" visibility="public" complexity="3" crap="3.02" count="4"/>
5412
  <line num="429" type="stmt" count="4"/>
5413
+ <line num="430" type="stmt" count="0"/>
5414
+ <line num="434" type="stmt" count="4"/>
5415
+ <line num="435" type="stmt" count="4"/>
5416
+ <line num="442" type="stmt" count="4"/>
5417
+ <line num="444" type="stmt" count="4"/>
5418
+ <line num="446" type="stmt" count="4"/>
5419
+ <line num="448" type="stmt" count="4"/>
5420
+ <line num="458" type="method" name="is_using_defaults" visibility="public" complexity="1" crap="2" count="0"/>
5421
+ <line num="459" type="stmt" count="0"/>
5422
+ <line num="461" type="stmt" count="0"/>
5423
+ <line num="472" type="method" name="from_post" visibility="public" complexity="9" crap="90" count="0"/>
5424
+ <line num="473" type="stmt" count="0"/>
5425
+ <line num="474" type="stmt" count="0"/>
5426
  <line num="477" type="stmt" count="0"/>
5427
+ <line num="480" type="stmt" count="0"/>
5428
+ <line num="485" type="stmt" count="0"/>
5429
+ <line num="486" type="stmt" count="0"/>
5430
+ <line num="487" type="stmt" count="0"/>
5431
+ <line num="492" type="stmt" count="0"/>
5432
  <line num="493" type="stmt" count="0"/>
5433
+ <line num="494" type="stmt" count="0"/>
5434
+ <line num="495" type="stmt" count="0"/>
5435
  <line num="496" type="stmt" count="0"/>
5436
+ <line num="497" type="stmt" count="0"/>
5437
+ <line num="498" type="stmt" count="0"/>
5438
  <line num="501" type="stmt" count="0"/>
 
5439
  <line num="503" type="stmt" count="0"/>
5440
+ <line num="511" type="method" name="wp_ajax_preview" visibility="public" complexity="8" crap="72" count="0"/>
 
 
 
5441
  <line num="512" type="stmt" count="0"/>
5442
  <line num="513" type="stmt" count="0"/>
5443
  <line num="514" type="stmt" count="0"/>
5444
+ <line num="516" type="stmt" count="0"/>
5445
  <line num="517" type="stmt" count="0"/>
5446
  <line num="519" type="stmt" count="0"/>
5447
+ <line num="520" type="stmt" count="0"/>
5448
+ <line num="521" type="stmt" count="0"/>
5449
+ <line num="523" type="stmt" count="0"/>
5450
+ <line num="525" type="stmt" count="0"/>
5451
+ <line num="527" type="stmt" count="0"/>
5452
  <line num="528" type="stmt" count="0"/>
5453
  <line num="529" type="stmt" count="0"/>
5454
+ <line num="531" type="stmt" count="0"/>
 
5455
  <line num="533" type="stmt" count="0"/>
5456
+ <line num="534" type="stmt" count="0"/>
5457
  <line num="535" type="stmt" count="0"/>
 
5458
  <line num="537" type="stmt" count="0"/>
5459
+ <line num="538" type="stmt" count="0"/>
5460
+ <metrics loc="539" ncloc="260" classes="1" methods="11" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="154" coveredstatements="77" elements="165" coveredelements="81"/>
 
 
 
 
 
 
 
 
 
 
5461
  </file>
5462
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-go-pro.php">
5463
  <class name="Boldgrid_Backup_Admin_Go_Pro" namespace="global" fullPackage="Boldgrid.Backup.Admin.Go">
8560
  <line num="178" type="stmt" count="0"/>
8561
  <line num="179" type="stmt" count="0"/>
8562
  <line num="180" type="stmt" count="0"/>
8563
+ <line num="191" type="method" name="get_configs" visibility="public" complexity="6" crap="6.56" count="33"/>
8564
+ <line num="193" type="stmt" count="33"/>
8565
+ <line num="194" type="stmt" count="33"/>
8566
  <line num="198" type="stmt" count="1"/>
8567
  <line num="201" type="stmt" count="1"/>
8568
  <line num="202" type="stmt" count="1"/>
15868
  <line num="105" type="stmt" count="1"/>
15869
  <line num="106" type="stmt" count="1"/>
15870
  <line num="107" type="stmt" count="1"/>
15871
+ <line num="128" type="stmt" count="1"/>
15872
+ <line num="129" type="stmt" count="1"/>
15873
+ <line num="130" type="stmt" count="1"/>
15874
+ <metrics loc="130" ncloc="64" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="46" coveredstatements="43" elements="46" coveredelements="43"/>
15875
  </file>
15876
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.rating-prompt.php">
15877
  <line num="17" type="stmt" count="0"/>
76984
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76985
  </file>
76986
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76987
+ <class name="ComposerStaticInited12486b38cd5226a62d62e69acff90f" namespace="Composer\Autoload">
76988
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76989
  </class>
76990
  <line num="80" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
77149
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
77150
  </file>
77151
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
77152
+ <class name="ComposerAutoloaderInited12486b38cd5226a62d62e69acff90f" namespace="global">
77153
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="42" coveredstatements="0" elements="44" coveredelements="0"/>
77154
  </class>
77155
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
96480
  <line num="16" type="stmt" count="0"/>
96481
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96482
  </file>
96483
+ <metrics files="967" loc="193917" ncloc="118285" classes="873" methods="3614" coveredmethods="310" conditionals="0" coveredconditionals="0" statements="86929" coveredstatements="4585" elements="90543" coveredelements="4895"/>
96484
  </project>
96485
  </coverage>
includes/config/config.plugin.php CHANGED
@@ -105,4 +105,26 @@ return [
105
  'version' => '1.14.0',
106
  ],
107
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  ];
105
  'version' => '1.14.0',
106
  ],
107
  ],
108
+
109
+ /*
110
+ * An array of banned files.
111
+ *
112
+ * @see Boldgrid_Backup_Admin_Folder_Exclusion::is_banned()
113
+ */
114
+ 'banned' => [
115
+ /*
116
+ * The ea-php-cli cache symlink. This one has appeared several times, and therefore is now
117
+ * banned. The following description has been taken from the cPanel website:
118
+ *
119
+ * The first time you call one of the ea-php-cli binaries, the system creates the .ea-php-cli.cache
120
+ * symlink to the PHP version that the directory requires. This symlink provides a quick
121
+ * way for the system to determine the proper version of PHP and reads as broken by design.
122
+ * For example, if the PHP script requires PHP 7.0, then the symlink will point to ea-php70.
123
+ * cPanel creates broken symlinks by design and will recreate any removed symlinks the next
124
+ * time that you run the script. You can safely ignore them.
125
+ *
126
+ * @link https://wordpress.org/support/topic/total-upkeep-error-creating-backup/
127
+ */
128
+ '.ea-php-cli.cache',
129
+ ],
130
  ];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: backup, cloud backup, database backup, restore, wordpress backup
4
  Requires at least: 4.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
- Stable tag: 1.14.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,6 +132,13 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
 
 
135
  = 1.14.6 =
136
 
137
  Release date: October 13th, 2020
4
  Requires at least: 4.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 1.14.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.14.7 =
136
+
137
+ Release date: November 12th, 2020
138
+
139
+ * Update: Prevent easy apache cache files in backups.
140
+ * Bug fix: Fixed nonce errors when downloading remote archives.
141
+
142
  = 1.14.6 =
143
 
144
  Release date: October 13th, 2020
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitef2257ed178537687e80dd165545d5aa::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInited12486b38cd5226a62d62e69acff90f::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -14,24 +14,24 @@ class InstalledVersions
14
  private static $installed = array (
15
  'root' =>
16
  array (
17
- 'pretty_version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
18
- 'version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
19
  'aliases' =>
20
  array (
21
  ),
22
- 'reference' => '2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
23
  'name' => '__root__',
24
  ),
25
  'versions' =>
26
  array (
27
  '__root__' =>
28
  array (
29
- 'pretty_version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
30
- 'version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
31
  'aliases' =>
32
  array (
33
  ),
34
- 'reference' => '2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
35
  ),
36
  'boldgrid/library' =>
37
  array (
14
  private static $installed = array (
15
  'root' =>
16
  array (
17
+ 'pretty_version' => '1.14.7',
18
+ 'version' => '1.14.7.0',
19
  'aliases' =>
20
  array (
21
  ),
22
+ 'reference' => '291bb75ec6db28771cbd9dce7f8fe01ba8f3a1e2',
23
  'name' => '__root__',
24
  ),
25
  'versions' =>
26
  array (
27
  '__root__' =>
28
  array (
29
+ 'pretty_version' => '1.14.7',
30
+ 'version' => '1.14.7.0',
31
  'aliases' =>
32
  array (
33
  ),
34
+ 'reference' => '291bb75ec6db28771cbd9dce7f8fe01ba8f3a1e2',
35
  ),
36
  'boldgrid/library' =>
37
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitef2257ed178537687e80dd165545d5aa
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitef2257ed178537687e80dd165545d5aa
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitef2257ed178537687e80dd165545d5aa', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInitef2257ed178537687e80dd165545d5aa', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitef2257ed178537687e80dd165545d5aa::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitef2257ed178537687e80dd165545d5aa
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitef2257ed178537687e80dd165545d5aa::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequireef2257ed178537687e80dd165545d5aa($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequireef2257ed178537687e80dd165545d5aa($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInited12486b38cd5226a62d62e69acff90f
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInited12486b38cd5226a62d62e69acff90f', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInited12486b38cd5226a62d62e69acff90f', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInited12486b38cd5226a62d62e69acff90f::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInited12486b38cd5226a62d62e69acff90f::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequireed12486b38cd5226a62d62e69acff90f($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequireed12486b38cd5226a62d62e69acff90f($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitef2257ed178537687e80dd165545d5aa
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -80,9 +80,9 @@ class ComposerStaticInitef2257ed178537687e80dd165545d5aa
80
  public static function getInitializer(ClassLoader $loader)
81
  {
82
  return \Closure::bind(function () use ($loader) {
83
- $loader->prefixLengthsPsr4 = ComposerStaticInitef2257ed178537687e80dd165545d5aa::$prefixLengthsPsr4;
84
- $loader->prefixDirsPsr4 = ComposerStaticInitef2257ed178537687e80dd165545d5aa::$prefixDirsPsr4;
85
- $loader->classMap = ComposerStaticInitef2257ed178537687e80dd165545d5aa::$classMap;
86
 
87
  }, null, ClassLoader::class);
88
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInited12486b38cd5226a62d62e69acff90f
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
80
  public static function getInitializer(ClassLoader $loader)
81
  {
82
  return \Closure::bind(function () use ($loader) {
83
+ $loader->prefixLengthsPsr4 = ComposerStaticInited12486b38cd5226a62d62e69acff90f::$prefixLengthsPsr4;
84
+ $loader->prefixDirsPsr4 = ComposerStaticInited12486b38cd5226a62d62e69acff90f::$prefixDirsPsr4;
85
+ $loader->classMap = ComposerStaticInited12486b38cd5226a62d62e69acff90f::$classMap;
86
 
87
  }, null, ClassLoader::class);
88
  }
vendor/composer/installed.php CHANGED
@@ -1,24 +1,24 @@
1
  <?php return array (
2
  'root' =>
3
  array (
4
- 'pretty_version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
5
- 'version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
13
  array (
14
  '__root__' =>
15
  array (
16
- 'pretty_version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
17
- 'version' => 'dev-2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => '2c3c6789f2ed8b9df94d906b6ae87fd55d9a6c55',
22
  ),
23
  'boldgrid/library' =>
24
  array (
1
  <?php return array (
2
  'root' =>
3
  array (
4
+ 'pretty_version' => '1.14.7',
5
+ 'version' => '1.14.7.0',
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '291bb75ec6db28771cbd9dce7f8fe01ba8f3a1e2',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
13
  array (
14
  '__root__' =>
15
  array (
16
+ 'pretty_version' => '1.14.7',
17
+ 'version' => '1.14.7.0',
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => '291bb75ec6db28771cbd9dce7f8fe01ba8f3a1e2',
22
  ),
23
  'boldgrid/library' =>
24
  array (