From c3d944816cc5bc05d410a74b0d46f48786820ec5 Mon Sep 17 00:00:00 2001 From: xiaomlove <353856593@qq.com> Date: Thu, 4 Feb 2021 19:28:27 +0800 Subject: [PATCH] remove sent_mail() change encode --- public/takemessage.php | 2 +- public/takesignup.php | 2 +- public/usercp.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/takemessage.php b/public/takemessage.php index d5acf7ad..6e7b52cc 100644 --- a/public/takemessage.php +++ b/public/takemessage.php @@ -130,7 +130,7 @@ $prefix$BASEURL/messages.php?action=viewmessage&id=$msgid {$lang_takemessage_target[get_user_lang($user["id"])]['mail_the_site_team']} EOD; - sent_mail($user["email"],$SITENAME,$SITEEMAIL,change_email_encode(get_user_lang($user["id"]), $title),change_email_encode(get_user_lang($user["id"]),str_replace("
","
",nl2br($body))),"sendmessage",false,false,'',get_email_encode(get_user_lang($user["id"]))); + sent_mail($user["email"],$SITENAME,$SITEEMAIL,$title,str_replace("
","
",nl2br($body)),"sendmessage",false,false,''); } } diff --git a/public/takesignup.php b/public/takesignup.php index 521e95cc..6be5b945 100644 --- a/public/takesignup.php +++ b/public/takesignup.php @@ -206,7 +206,7 @@ elseif ($verification == 'automatic' || $smtptype == 'none'){ header("Location: " . get_protocol_prefix() . "$BASEURL/confirm.php?id=$id&secret=$psecret"); } else{ - sent_mail($send_email,$SITENAME,$SITEEMAIL,change_email_encode(get_langfolder_cookie(), $title),change_email_encode(get_langfolder_cookie(),$body),"signup",false,false,'',get_email_encode(get_langfolder_cookie())); + sent_mail($send_email,$SITENAME,$SITEEMAIL,$title,$body,"signup",false,false,''); header("Location: " . get_protocol_prefix() . "$BASEURL/ok.php?type=signup&email=" . rawurlencode($send_email)); } diff --git a/public/usercp.php b/public/usercp.php index fabc9917..56766e14 100644 --- a/public/usercp.php +++ b/public/usercp.php @@ -761,7 +761,7 @@ http://$BASEURL/confirmemail.php/{$CURUSER["id"]}/$hash/$obemail {$lang_usercp['mail_change_email_nine']} EOD; - sent_mail($email,$SITENAME,$SITEEMAIL,change_email_encode(get_langfolder_cookie(), $subject),change_email_encode(get_langfolder_cookie(),str_replace("
","
",nl2br($body))),"profile change",false,false,'',get_email_encode(get_langfolder_cookie())); + sent_mail($email,$SITENAME,$SITEEMAIL,$subject,str_replace("
","
",nl2br($body)),"profile change",false,false,''); } if ($privacy != "normal" && $privacy != "low" && $privacy != "strong")