openid 로그인시 return url 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4669 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2008-10-21 08:14:21 +00:00
parent d108208cea
commit 2e54a9f711

View file

@ -66,7 +66,9 @@
$this->setError(-1);
$this->setMessage($error['description']);
} else {
$openid->SetApprovedURL( sprintf('%s?module=member&act=procMemberOpenIDValidate', Context::getRequestUri(RELEASE_SSL)) );
$goto = urlencode(substr($_SERVER['HTTP_REFERER'],strlen(Context::getRequestUri(RELEASE_SSL))));
$ApprovedURL = Context::getRequestUri(RELEASE_SSL) . "?module=member&act=procMemberOpenIDValidate&goto=" . $goto;
$openid->SetApprovedURL($ApprovedURL);
$url = $openid->GetRedirectURL();
$this->add('redirect_url', $url);
}
@ -114,7 +116,13 @@
Context::close();
// 페이지 이동
header("location:./");
if(Context::get('goto')){
$goto = Context::get('goto');
header("location:./" . $goto);
}else{
header("location:./");
}
exit();