Really Simple SSL - Version 4.0.8

Version Description

  • Fix: fixed a bug in the get_certinfo() function where an URL with a double prefix could be checked
  • Improvement: Content Security Policy compatibility
Download this release

Release Info

Developer RogierLankhorst
Plugin Icon 128x128 Really Simple SSL
Version 4.0.8
Comparing to
See all releases

Code changes from version 4.0.7 to 4.0.8

class-certificate.php CHANGED
@@ -190,7 +190,12 @@ if ( ! class_exists( 'rsssl_certificate' ) ) {
190
  if ($certinfo === 'no-response') return false;
191
 
192
  if (!$certinfo || RSSSL()->really_simple_ssl->is_settings_page()) {
 
 
 
 
193
  $url = 'https://'.$url;
 
194
  $original_parse = parse_url($url, PHP_URL_HOST);
195
  if ($original_parse) {
196
  $get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE)));
190
  if ($certinfo === 'no-response') return false;
191
 
192
  if (!$certinfo || RSSSL()->really_simple_ssl->is_settings_page()) {
193
+
194
+ $url = str_replace('https://', '', $url);
195
+ $url = str_replace('http://', '', $url);
196
+
197
  $url = 'https://'.$url;
198
+
199
  $original_parse = parse_url($url, PHP_URL_HOST);
200
  if ($original_parse) {
201
  $get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE)));
readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 4.6
6
  License: GPL2
7
  Tested up to: 5.6
8
  Requires PHP: 5.6
9
- Stable tag: 4.0.7
10
 
11
  No setup required! You only need an SSL certificate, and this plugin will do the rest.
12
 
@@ -19,6 +19,8 @@ To keep it lightweight, the options are kept to a minimum. The entire site will
19
  * Activate this plugin
20
  * Enable SSL with one click
21
 
 
 
22
  Always backup before you go! If you do not have a sound backup policy, start having one! See [our recommendations](https://really-simple-ssl.com/knowledge-base/backing-up-your-site/).
23
 
24
  Any code suggestions? We're on [GitHub](https://github.com/rlankhorst/really-simple-ssl) as well!
@@ -50,6 +52,7 @@ Check out other plugins developed by Really Simple Plugins as well: [Complianz](
50
  Translations can be added very easily [here](https://translate.wordpress.org/projects/wp-plugins/really-simple-ssl). If you do, I can get you added as translation editor to approve the translations.
51
 
52
  == Installation ==
 
53
  To install this plugin:
54
 
55
  1. Make a backup!
@@ -82,6 +85,10 @@ If you are experiencing redirect loops on your site, try these [instructions](ht
82
  Yes. There is a dedicated network settings page where you can switch between network activated SSL and per page SSL. In the dedicated pro for multisite plugin, you can override all site settings for SSL on the network level, and can activate and deactivate SSL in the network menu for each site.
83
 
84
  == Changelog ==
 
 
 
 
85
  = 4.0.7 =
86
  * Fix: catch not set certificate info in case of empty array when no certificate is available
87
  * Fix: minor CSS fixes
6
  License: GPL2
7
  Tested up to: 5.6
8
  Requires PHP: 5.6
9
+ Stable tag: 4.0.8
10
 
11
  No setup required! You only need an SSL certificate, and this plugin will do the rest.
12
 
19
  * Activate this plugin
20
  * Enable SSL with one click
21
 
22
+ https://www.youtube.com/watch?v=BVx3ZrSsPrU
23
+
24
  Always backup before you go! If you do not have a sound backup policy, start having one! See [our recommendations](https://really-simple-ssl.com/knowledge-base/backing-up-your-site/).
25
 
26
  Any code suggestions? We're on [GitHub](https://github.com/rlankhorst/really-simple-ssl) as well!
52
  Translations can be added very easily [here](https://translate.wordpress.org/projects/wp-plugins/really-simple-ssl). If you do, I can get you added as translation editor to approve the translations.
53
 
54
  == Installation ==
55
+
56
  To install this plugin:
57
 
58
  1. Make a backup!
85
  Yes. There is a dedicated network settings page where you can switch between network activated SSL and per page SSL. In the dedicated pro for multisite plugin, you can override all site settings for SSL on the network level, and can activate and deactivate SSL in the network menu for each site.
86
 
87
  == Changelog ==
88
+ = 4.0.8 =
89
+ * Fix: fixed a bug in the get_certinfo() function where an URL with a double prefix could be checked
90
+ * Improvement: Content Security Policy compatibility
91
+
92
  = 4.0.7 =
93
  * Fix: catch not set certificate info in case of empty array when no certificate is available
94
  * Fix: minor CSS fixes
rlrsssl-really-simple-ssl.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Really Simple SSL
4
  * Plugin URI: https://really-simple-ssl.com
5
  * Description: Lightweight plugin without any setup to make your site SSL proof
6
- * Version: 4.0.7
7
  * Author: Really Simple Plugins
8
  * Author URI: https://really-simple-plugins.com
9
  * License: GPL2
@@ -58,6 +58,9 @@ class REALLY_SIMPLE_SSL
58
 
59
  private function __construct()
60
  {
 
 
 
61
  }
62
 
63
  public static function instance()
@@ -71,7 +74,7 @@ class REALLY_SIMPLE_SSL
71
 
72
  $wpcli = defined( 'WP_CLI' ) && WP_CLI;
73
 
74
- if (is_admin() || is_multisite() || $wpcli || defined('RSSSL_DOING_SYSTEM_STATUS')) {
75
  if (is_multisite()) {
76
  self::$instance->rsssl_multisite = new rsssl_multisite();
77
  }
@@ -113,7 +116,7 @@ class REALLY_SIMPLE_SSL
113
  require_once(rsssl_path . 'class-rsssl-wp-cli.php');
114
  }
115
 
116
- if (is_admin() || is_multisite() || $wpcli || defined('RSSSL_DOING_SYSTEM_STATUS')) {
117
  if (is_multisite()) {
118
  require_once(rsssl_path . 'class-multisite.php');
119
  require_once(rsssl_path . 'multisite-cron.php');
3
  * Plugin Name: Really Simple SSL
4
  * Plugin URI: https://really-simple-ssl.com
5
  * Description: Lightweight plugin without any setup to make your site SSL proof
6
+ * Version: 4.0.8
7
  * Author: Really Simple Plugins
8
  * Author URI: https://really-simple-plugins.com
9
  * License: GPL2
58
 
59
  private function __construct()
60
  {
61
+ if (isset($_GET['rsssl_apitoken']) && $_GET['rsssl_apitoken'] == get_option('rsssl_csp_report_token') ) {
62
+ if ( !defined('RSSSL_DOING_CSP') ) define( 'RSSSL_DOING_CSP' , true );
63
+ }
64
  }
65
 
66
  public static function instance()
74
 
75
  $wpcli = defined( 'WP_CLI' ) && WP_CLI;
76
 
77
+ if (is_admin() || is_multisite() || $wpcli || defined('RSSSL_DOING_SYSTEM_STATUS') || defined('RSSSL_DOING_CSP') ) {
78
  if (is_multisite()) {
79
  self::$instance->rsssl_multisite = new rsssl_multisite();
80
  }
116
  require_once(rsssl_path . 'class-rsssl-wp-cli.php');
117
  }
118
 
119
+ if (is_admin() || is_multisite() || $wpcli || defined('RSSSL_DOING_SYSTEM_STATUS') || defined('RSSSL_DOING_CSP') ) {
120
  if (is_multisite()) {
121
  require_once(rsssl_path . 'class-multisite.php');
122
  require_once(rsssl_path . 'multisite-cron.php');