Posts: 32
Threads: 10
Joined: Sep 2015
Hello again Steven,
I just discovered another bug. I noticed that any page that a comment is posted on becomes insecure... I will PM you a link...
Thanks.
Posts: 2,894
Threads: 59
Joined: Jun 2010
Okay can you open /commentics/includes/template/head.php and change all instances of "http://" to "//".
Then open /commentics/includes/functions/page.php and change this function ..
PHP Code:
<?php
function cmtx_commentics_url() { //gets the URL to Commentics
$url = cmtx_url_decode('http' . ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 's' : '') . '://' . strtolower($_SERVER['HTTP_HOST']) . parse_url(cmtx_setting('commentics_url'), PHP_URL_PATH));
$url = cmtx_url_encode($url);
if (!parse_url(cmtx_setting('commentics_url'), PHP_URL_PATH) || !filter_var($url, FILTER_VALIDATE_URL)) {
$url = cmtx_url_encode(cmtx_setting('commentics_url'));
}
return $url;
} //end of commentics-url function
.. to this ..
PHP Code:
<?php
function cmtx_commentics_url() { //gets the URL to Commentics
return cmtx_url_encode(cmtx_setting('commentics_url'));
} //end of commentics-url function
I think some of your page's other content (not to do with Commentics) may be causing the insecure error too. After you make the above changes, view the source code of your page and search for "http://". Any links using it are fine but if it's including content (for example an image, JavaScript or CSS file) then these will need to be changed as well.