| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | public $badgeinfo = 'wprbadge'; |
| 11 | 11 | public $ip_header_option = 'wpripheader'; |
| 12 | 12 | public $brand_option = 'bv_whitelabel_infos'; |
| 13 | 13 | public $wp_lp_whitelabel_option = 'wprLpWhitelabelConf'; |
| 14 | - public $version = '6.48'; | |
| 14 | + public $version = '6.72'; | |
| 15 | 15 | public $webpage = 'https://wpremote.com'; |
| 16 | 16 | public $appurl = 'https://app.wpremote.com'; |
| 17 | 17 | public $slug = 'wpremote/plugin.php'; |
| 18 | 18 | public $plug_redirect = 'wprredirect'; |
| @@ -63,16 +63,17 @@ | ||
| 63 | 63 | require_once dirname( __FILE__ ) . '/recover.php'; |
| 64 | 64 | $bvsiteinfo = new WPRWPSiteInfo(); |
| 65 | 65 | $encoded_url = base64_encode($bvsiteinfo->siteurl()); |
| 66 | 66 | $secret = WPRRecover::defaultSecret($this->settings); |
| 67 | + $tag = WPRRecover::connectionTag($this->settings); | |
| 67 | 68 | |
| 68 | - return base64_encode("v2:".$secret.":".$encoded_url.":".$this->plugname); | |
| 69 | - } | |
| 69 | + #No tag means this site has no salt material in wp-config.php, and there | |
| 70 | + #is no connection key that would be safe to hand out. | |
| 71 | + if (empty($secret) || empty($tag)) { | |
| 72 | + return null; | |
| 73 | + } | |
| 70 | 74 | |
| 71 | - public function getDefaultSecret() { | |
| 72 | - require_once dirname( __FILE__ ) . '/recover.php'; | |
| 73 | - $bvsiteinfo = new WPRWPSiteInfo(); | |
| 74 | - return WPRRecover::defaultSecret($this->settings); | |
| 75 | + return base64_encode("v3:".$secret.":".$encoded_url.":".$this->plugname.":".$tag); | |
| 75 | 76 | } |
| 76 | 77 | |
| 77 | 78 | public function getLatestElementorDBVersion($file) { |
| 78 | 79 | $managerClass = $file === "elementor/elementor.php" ? '\Elementor\Core\Upgrade\Manager' : '\ElementorPro\Core\Upgrade\Manager'; |