Bug #14963
closedAuto redirect feature from Martin Kutschker overwrites the variable with the storagePid (ver 2.2.9)
0%
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)
Updated by Franz Koch over 18 years ago
This bug is still in current CVS-version
Updated by Wolfgang Klinger over 18 years ago
this is so easy to fix, so I thought I send you a reminder ;-)
Updated by Stefan Strasser about 18 years ago
With 3.0.0 (not yet reviewed) it is now solved.