From 4a6796cece587bf45bc6a72486a317613e7cfade Mon Sep 17 00:00:00 2001
From: Florian Bogner <f.bogner@pcsg.de>
Date: Wed, 21 Dec 2016 15:59:03 +0100
Subject: [PATCH] fix: Fixed the issue with duplicate https in the url sent
 with the registration

---
 src/QUI/Cron/CronService.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/QUI/Cron/CronService.php b/src/QUI/Cron/CronService.php
index 12a198f..1d3c0ae 100644
--- a/src/QUI/Cron/CronService.php
+++ b/src/QUI/Cron/CronService.php
@@ -26,13 +26,14 @@ class CronService
 
         // VHost Domain
         $vhost        = QUI::getProjectManager()->getStandard()->getVHost(true, true);
-        $this->domain = $vhost;
 
         // Check if https should be used.
         if (substr($vhost, 0, 8) == 'https://') {
             $this->https = true;
         }
 
+        $this->domain = str_replace("https://", "", $vhost);
+
         // Read the domain from the config file if no vhost could be detected.
         if (empty($vhost)) {
             // Parse Domain and protocol
-- 
GitLab