diff --git a/index.php b/index.php index 1f464a1..57dabd2 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 = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?'.$urlhash; $qrcode = (new QrCode())->setText($shortUrl); - $content = ''.$shortUrl.'' + $content = ''.$shortUrl.'
' .''; } elseif (!empty($_GET)) { $urlhash = key($_GET);