Skip to content

Commit 98cf011

Browse files
Fixed valid domains for apache auth sso
git-svn-id: http://svn.ilias.de/svn/ilias/trunk@34235 21b2c9ec-7c21-0410-8b45-9bfb8ed2bfc5
1 parent 8cba0f6 commit 98cf011

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

sso/index.php

+8-7
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@
1717

1818
$redirect = $_GET['r'];
1919

20+
$validDomains = array();
21+
2022
$path = ILIAS_DATA_DIR . '/' . CLIENT_ID . '/apache_auth_allowed_domains.txt';
21-
if (file_exists($path) && is_readable($path)) {
22-
foreach(file($path) as $line) {
23-
if (trim($line)) {
23+
if(file_exists($path) && is_readable($path))
24+
{
25+
foreach(file($path) as $line)
26+
{
27+
if(trim($line))
28+
{
2429
$validDomains[] = trim($line);
2530
}
2631
}
27-
28-
}
29-
else {
30-
$validDomains = array();
3132
}
3233

3334
$P = parse_url($redirect);

0 commit comments

Comments
 (0)