summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-09-04 19:09:39 +0200
committerUrban Müller2023-09-04 19:09:39 +0200
commit842deaadc3d8e16a118da1c68cbb5a3eb3d4849d (patch)
treedc5b04f0f26a940bdbf7b3e29567d60668c181cd
parent5ad3fcb753b2f2d10ee60d9a2e9b7df6c93bcd3b (diff)
downloaditools-842deaadc3d8e16a118da1c68cbb5a3eb3d4849d.tar.gz
itools-842deaadc3d8e16a118da1c68cbb5a3eb3d4849d.tar.bz2
itools-842deaadc3d8e16a118da1c68cbb5a3eb3d4849d.zip
add forgotten url to host, mail2443
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 52779f3..38d0c71 100644
--- a/it.class
+++ b/it.class
@@ -186,7 +186,7 @@ static function error($p = array(), $extra = null)
return null; # prevent recursion
if ($_SERVER['REMOTE_ADDR'])
- $url = ($_SERVER['HTTPS'] ? "https://" : "http://") . $_SERVER['REQUEST_URI'];
+ $url = ($_SERVER['HTTPS'] ? "https://" : "http://") . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
else
$url = $_SERVER['SCRIPT_NAME'] . " " . implode(" ", array_slice($GLOBALS['argv'], 1)) . " (pwd " . $_SERVER['PWD'] . ")";