Display http host to ease copying full url

This commit is contained in:
pips 2016-12-13 13:37:05 +01:00
parent f9a246de41
commit b09244cc5f

View file

@ -25,7 +25,7 @@ if (!empty($_GET['url'])) {
mkdir($hashfolderpath, 0700, true);
file_put_contents($hashfilepath, $url);
$content = '<a href="./?'.$urlhash.'">./?'.$urlhash.'</a>';
$content = '<a href="./?'.$urlhash.'">http://'.$_SERVER['HTTP_HOST'].'/?'.$urlhash.'</a>';
} elseif (!empty($_GET)) {
$urlhash = key($_GET);