mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
Better check of server name for unusual web servers
This commit is contained in:
parent
4de4fdfe86
commit
df3fd24968
@ -118,6 +118,8 @@ function qualified_me() {
|
||||
$hostname = $_SERVER["HTTP_HOST"];
|
||||
} else if (!empty($_ENV["HTTP_HOST"])) {
|
||||
$hostname = $_ENV["HTTP_HOST"];
|
||||
} else if (!empty($_SERVER["SERVER_NAME"])) {
|
||||
$hostname = $_SERVER["SERVER_NAME"];
|
||||
} else if (!empty($_ENV["SERVER_NAME"])) {
|
||||
$hostname = $_ENV["SERVER_NAME"];
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user