Bug #19756 » 10043_gpvar.diff
typo3/sysext/openid/class.tx_openid_eid.php (working copy) | ||
---|---|---|
// Redirect to the original location in any case (authenticated or not)
|
||
@ob_end_clean();
|
||
header(t3lib_div::HTTP_STATUS_303);
|
||
header('Location: ' . t3lib_div::locationHeaderUrl(t3lib_div::GPvar('tx_openid_location')));
|
||
header('Location: ' . t3lib_div::locationHeaderUrl(t3lib_div::_GP('tx_openid_location')));
|
||
exit;
|
||
}
|
||
}
|
typo3/sysext/openid/sv1/class.tx_openid_sv1.php (working copy) | ||
---|---|---|
$this->loginData = $loginData;
|
||
$this->authenticationInformation = $authenticationInformation;
|
||
// If we are here after authentication by the OpenID server, get its response.
|
||
if (t3lib_div::GPvar('tx_openid_mode') == 'finish' && $this->openIDResponse == null) {
|
||
if (t3lib_div::_GP('tx_openid_mode') == 'finish' && $this->openIDResponse == null) {
|
||
$this->includePHPOpenIDLibrary();
|
||
$openIDConsumer = $this->getOpenIDConsumer();
|
||
$this->openIDResponse = $openIDConsumer->complete($this->getReturnURL());
|
||
... | ... | |
// LiveJournal server converts all underscore characters in the
|
||
// original identfier to dashes.
|
||
if ($this->openIDResponse->status == Auth_OpenID_SUCCESS) {
|
||
$claimedOpenIDIdentifier = t3lib_div::GPvar('tx_openid_claimed');
|
||
$claimedOpenIDIdentifier = t3lib_div::_GP('tx_openid_claimed');
|
||
if ($claimedOpenIDIdentifier) {
|
||
$userRecord = $this->getUserRecord($claimedOpenIDIdentifier);
|
||
$this->writeLog('User \'%s\' logged in with OpenID \'%s\'',
|
||
... | ... | |
$absoluteSiteURL = substr(t3lib_div::getIndpEnv('TYPO3_SITE_URL'), strlen(t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST')));
|
||
$returnURL = $absoluteSiteURL . TYPO3_mainDir . 'sysext/' . $this->extKey . '/class.tx_openid_return.php?login_status=login&';
|
||
}
|
||
if (t3lib_div::GPvar('tx_openid_mode') == 'finish') {
|
||
$requestURL = t3lib_div::GPvar('tx_openid_location');
|
||
$claimedIdentifier = t3lib_div::GPvar('tx_openid_claimed');
|
||
if (t3lib_div::_GP('tx_openid_mode') == 'finish') {
|
||
$requestURL = t3lib_div::_GP('tx_openid_location');
|
||
$claimedIdentifier = t3lib_div::_GP('tx_openid_claimed');
|
||
} else {
|
||
$requestURL = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
|
||
$claimedIdentifier = $this->loginData['uname'];
|