Skip to content
Snippets Groups Projects
Commit c9f57cd7 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Merge pull request #212 from thijskh/remove-override.host

Remove override.host config variable.
parents 6ef26b1f 86b9f12f
No related branches found
No related tags found
No related merge requests found
......@@ -107,20 +107,6 @@ class SimpleSAML_Configuration {
$config = array();
}
if (array_key_exists('override.host', $config)) {
$host = $_SERVER['HTTP_HOST'];
if (array_key_exists($host, $config['override.host'])) {
$ofs = $config['override.host'][$host];
foreach (SimpleSAML\Utils\Arrays::arrayize($ofs) AS $of) {
$overrideFile = dirname($filename) . '/' . $of;
if (!file_exists($overrideFile)) {
throw new Exception('Config file [' . $filename . '] requests override for host ' . $host . ' but file does not exists [' . $of . ']');
}
require($overrideFile);
}
}
}
$cfg = new SimpleSAML_Configuration($config, $filename);
$cfg->filename = $filename;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment