From c51d19aa63432f62302553965a90b184d20583d9 Mon Sep 17 00:00:00 2001 From: Simon Lieb 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);