Skip to content

Commit

Permalink
소셜로그인시 정보수정에 관한 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Dec 13, 2018
1 parent 038affe commit 39c8182
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bbs/member_confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$url = clean_xss_tags($_GET['url']);

//소셜 로그인 한 경우
if( function_exists('social_member_comfirm_redirect') && (! $url || $url === 'register_form.php') ){
if( function_exists('social_member_comfirm_redirect') && (! $url || $url === 'register_form.php' || (function_exists('social_is_edit_page') && social_is_edit_page($url) ) ) ){
social_member_comfirm_redirect();
}

Expand Down
17 changes: 17 additions & 0 deletions plugin/social/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,23 @@ function social_member_comfirm_redirect(){
}
}

function social_is_edit_page($url=''){
global $is_member;

if( !$is_member ) return false;

if($url){
$p = @parse_url($url);
$host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']);

if ( isset($p['host']) && ($p['host'] === $host) && preg_match('/register_form\.php$/i', $url) ){
return true;
}
}

return false;
}

function social_is_login_password_check($mb_id){
global $g5;

Expand Down

0 comments on commit 39c8182

Please sign in to comment.