#14963Auto redirect feature from Martin Kutschker overwrites the variable with the storagePid (ver 2.2.9)
Description
in line 88 the variable $d is filled with the storagePid which is used in line 290 for submitting the form-value “pid” by a hidden input-field.
Line 88:
—-
// Get storage PIDs:
$d=$GLOBALS[‘TSFE’]->getStorageSiterootPids();
—-
Line 290:
—-
<input type="hidden" name="pid" value="'.intval($d['_STORAGE_PID']).'">
—-
The feature “auto redirect” from Martin Kutscher (lines 105 to 110) overwrites the variable $d, which makes it impossible to get the login working while using the auto redirect feature.
Lines 105 to 110:
—-
foreach(split(‘,’, $this->conf[‘domains’]) as $d) {
if (ereg(‘(^|\.)’.$d.’$’,$redirect_domain)) {
$found = true;
break;
}
}
—-
Solution: simply change the name of the variable from this feature in e.g. $domain
—-
foreach(split(‘,’, $this->conf[‘domains’]) as $domain) {
if (ereg(‘(^|\.)’.$domain.’$’,$redirect_domain)) {
$found = true;
break;
}
}
—-
(issue imported from #M1442)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.