From b09244cc5f562a31957a0e8a849ad74d80d5561b Mon Sep 17 00:00:00 2001 From: pips Date: Tue, 13 Dec 2016 13:37:05 +0100 Subject: [PATCH] Display http host to ease copying full url --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 39d8288..3ed7533 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ if (!empty($_GET['url'])) { mkdir($hashfolderpath, 0700, true); file_put_contents($hashfilepath, $url); - $content = './?'.$urlhash.''; + $content = 'http://'.$_SERVER['HTTP_HOST'].'/?'.$urlhash.''; } elseif (!empty($_GET)) { $urlhash = key($_GET);