dedecms会员邮件验证通知在https下验证链接错误
- 打开
/member/index_do.php - 找到大概在31行的
$url = 'http://'.preg_replace("#//#i", '/', $url);改成$server_port = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://'; $url = $server_port.preg_replace("/^(http|https):\/\//i", "", trim($url)); - 打开
/member/reg_new.php - 找到大概在250行的
$url = 'http://'.preg_replace("#//#", '/', $url);改成$server_port = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://'; $url = $server_port.preg_replace("/^(http|https):\/\//i", "", trim($url)); - 打开
/member/mail.php - 找到大概在76行的
$url = 'http://'.eregi_replace('//', '/', $url);改成$server_port = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://'; $url = $server_port.preg_replace("/^(http|https):\/\//i", "", trim($url));

扫码添加技术【解决问题】
专注企业网站建设、网站安全16年。
承接:企业网站建设、网站修改、网站改版、BUG修复、问题处理、二次开发、PSD转HTML、网站被黑、网站漏洞修复等。
专业解决各种疑难杂症,您有任何网站问题都可联系我们技术人员。
本文来自博客园,作者:黄文Rex,转载请注明原文链接:https://www.cnblogs.com/hwrex/p/18510408

浙公网安备 33010602011771号