mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Merge pull request #1159 from zfanta/protect_email_address
이메일 비공개인 경우에도 이메일 보내기로 이메일 주소 노출되는 문제 수정
This commit is contained in:
commit
78268aa371
1 changed files with 8 additions and 2 deletions
|
|
@ -138,8 +138,14 @@ class memberModel extends member
|
|||
// When click other's nickname
|
||||
if($member_srl != $logged_info->member_srl && $logged_info->member_srl)
|
||||
{
|
||||
// Send an email
|
||||
if($member_info->email_address)
|
||||
// Get email config
|
||||
for($i = 0; $i < count($this->module_config->signupForm); $i++)
|
||||
if($this->module_config->signupForm[$i]->name == 'email_address')
|
||||
break;
|
||||
$email_config = $this->module_config->signupForm[$i];
|
||||
|
||||
// Send an email only if email address is public
|
||||
if($logged_info->is_admin == 'Y' || $email_config->isPublic == 'Y' && $member_info->email_address)
|
||||
{
|
||||
$url = 'mailto:'.htmlspecialchars($member_info->email_address, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
|
||||
$oMemberController->addMemberPopupMenu($url,'cmd_send_email',$icon_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue