Project

General

Profile

Actions

Bug #14963

closed

Auto redirect feature from Martin Kutschker overwrites the variable with the storagePid (ver 2.2.9)

Added by Franz Koch about 19 years ago. Updated about 18 years ago.

Status:
Closed
Priority:
Should have
Category:
felogin
Target version:
-
Start date:
2005-09-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Franz Koch over 18 years ago

This bug is still in current CVS-version

Actions #2

Updated by Wolfgang Klinger over 18 years ago

this is so easy to fix, so I thought I send you a reminder ;-)

Actions #3

Updated by Stefan Strasser about 18 years ago

With 3.0.0 (not yet reviewed) it is now solved.

Actions

Also available in: Atom PDF