Problem with CLOUDFLARE Definition
-
Hi.
I use your plugin. The domain is registered on CloudFlier.
But the plugin does not correctly define it and cannot add lines to .htaccessRewriteCond %{HTTP:CF-Visitor} '"scheme":"http"' RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L]Looked at the code in the file:
wp-content/plugins/really-simple-ssl/class-admin.php : 1299
elseif ((strpos($filecontents, "#CLOUDFLARE#") !== false) || (isset($_SERVER['HTTP_CF_VISITOR']) && ($_SERVER['HTTP_CF_VISITOR'] == 'https'))) {but this field (‘HTTP_CF_VISITOR’) in fact gives json
[HTTP_CF_VISITOR] => {\"scheme\":\"https\"}The same situation in:
wp-content/plugins/really-simple-ssl/ssl-test-page.php : 38
if (!empty($_SERVER['HTTP_CF_VISITOR']) && ($_SERVER['HTTP_CF_VISITOR'] == 'https')) {Maybe my server is not configured correctly and ‘HTTP_CF_VISITOR’ should be a string and not json.
Could you add regex validation for this case?
The topic ‘Problem with CLOUDFLARE Definition’ is closed to new replies.