diff --git a/index.php b/index.php index 57dabd2..0fb05be 100644 --- a/index.php +++ b/index.php @@ -30,11 +30,11 @@ if (!empty($_GET['url'])) { file_put_contents($hashfilepath, $url); - $shortUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?'.$urlhash; + $shortUrl = $_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?'.$urlhash; $qrcode = (new QrCode())->setText($shortUrl); - $content = ''.$shortUrl.'
' + $content = ''.$shortUrl.'
' .''; } elseif (!empty($_GET)) { $urlhash = key($_GET);