summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Froehlich <bernhard@cacert.org>2021-06-08 21:00:43 +0000
committerBernhard Froehlich <bernhard@cacert.org>2021-06-08 21:00:43 +0000
commit359290da045201d32d756ff37ac605e423e72be7 (patch)
treecfea0d7fc9245106d45321a44f1d951bebbed86a
parenta77f4decd53911f85bc9516f2a0980bd15d5b81b (diff)
downloadcacert-devel-test-1442.tar.gz
cacert-devel-test-1442.tar.xz
cacert-devel-test-1442.zip
Avoid php errors...test-1442
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index 5231c88..7c5cff3 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -57,7 +57,7 @@
exit;
}
- if(array_key_exists('HTTP_HOST',$_SERVER) &&
+ if(array_key_exists('HTTP_HOST',$_SERVER) && array_key_exists('tverify', $_SESSION['_config']) &&
($_SERVER['HTTP_HOST'] == $_SESSION['_config']['securehostname'] ||
$_SERVER['HTTP_HOST'] == $_SESSION['_config']['tverify']))
{