=========================================
Discuz! 7.2 Release 20101020 补丁包
=========================================
问题修复:后台安全BUG
=========================================
懒人修补办法:
下载并解压缩文件,上传文件到论坛根目录,覆盖原来的文件即可
https://download.discuz.vip/Disc ... ADE_TO_20101020.zip
=========================================
手工更新方法:
记事本等编辑器打开discuz_version.php
找到- define('DISCUZ_RELEASE', '20100110');
复制代码 改为- define('DISCUZ_RELEASE', '20101020');
复制代码 再打开include/global.func.php
找到- function sendpm($toid, $subject, $message, $fromid = '') {
- if($fromid === '') {
- require_once DISCUZ_ROOT.'./uc_client/client.php';
- $fromid = $discuz_uid;
- }
- if($fromid) {
- uc_pm_send($fromid, $toid, $subject, $message);
- } else {
- global $promptkeys;
- if(in_array($subject, $promptkeys)) {
- $type = $subject;
- } else {
- extract($GLOBALS, EXTR_SKIP);
- require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
- eval("\$message = addslashes("".$message."");");
- $type = 'systempm';
- $message = '<div>'.$subject.' {time}<br />'.discuzcode($message, 1, 0).'</div>';
- }
- sendnotice($toid, $message, $type);
- }
- }
复制代码 改为- function sendpm($toid, $subject, $message, $fromid = '') {
- if($fromid === '') {
- require_once DISCUZ_ROOT.'./uc_client/client.php';
- $fromid = $discuz_uid;
- }
- if($fromid) {
- uc_pm_send($fromid, $toid, $subject, $message);
- } else {
- global $promptkeys;
- if(in_array($subject, $promptkeys)) {
- $type = $subject;
- } else {
- extract($GLOBALS, EXTR_SKIP);
- require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
- $message = str_replace(array('{', '}', '"'), ' ', $message);
- eval("\$message = addslashes("".$message."");");
- $type = 'systempm';
- $message = '<div>'.$subject.' {time}<br />'.discuzcode($message, 1, 0).'</div>';
- }
- sendnotice($toid, $message, $type);
- }
- }
复制代码 保存覆盖回去 补丁修复完成。 |