Skip to content

Commit

Permalink
Fixed valid domains for apache auth sso
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.ilias.de/svn/ilias/trunk@34235 21b2c9ec-7c21-0410-8b45-9bfb8ed2bfc5
  • Loading branch information
mjansenDatabay committed Apr 17, 2012
1 parent 8cba0f6 commit 98cf011
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sso/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@

$redirect = $_GET['r'];

$validDomains = array();

$path = ILIAS_DATA_DIR . '/' . CLIENT_ID . '/apache_auth_allowed_domains.txt';
if (file_exists($path) && is_readable($path)) {
foreach(file($path) as $line) {
if (trim($line)) {
if(file_exists($path) && is_readable($path))
{
foreach(file($path) as $line)
{
if(trim($line))
{
$validDomains[] = trim($line);
}
}

}
else {
$validDomains = array();
}

$P = parse_url($redirect);
Expand Down

0 comments on commit 98cf011

Please sign in to comment.