--- /tmp/class.dc.blog.php_orig	2015-08-17 17:50:36.000000000 +0200
+++ inc/core/class.dc.blog.php	2015-08-18 07:59:07.924445001 +0200
@@ -79,7 +79,20 @@
 			$this->uid = $b->blog_uid;
 			$this->name = $b->blog_name;
 			$this->desc = $b->blog_desc;
-			$this->url = $b->blog_url;
+
+			/**
+			The host server might support SSL/TLS encryption, but using 
+			it might not be mandatory, i.e. you  have a self-signed certificates.
+
+			Thus, here, we check whether the client is using  SSL/TLS or not, 
+			and we set the default url so that every call to the getQmarkURL 
+			function will return the good url (think about plugins for example).
+			 */
+			if (!empty ($_SERVER['HTTPS']))
+				$this->url = str_replace ('http://', 'https://', $b->blog_url);
+			else
+				$this->url = $b->blog_url;
+
 			$this->host = http::getHostFromURL($this->url);
 			$this->creadt = strtotime($b->blog_creadt);
 			$this->upddt = strtotime($b->blog_upddt);
