From d07bfa6c0ab93a540733318ebfbfc598be5cb9cd Mon Sep 17 00:00:00 2001 From: DiscuzX <153619335@qq.com> Date: Mon, 8 Aug 2022 10:48:19 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGBK=E7=89=88CC=E6=94=BB?= =?UTF-8?q?=E5=87=BB=E9=98=B2=E5=BE=A1=E7=9A=84=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B9=B1=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/include/misc/misc_security.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upload/source/include/misc/misc_security.php b/upload/source/include/misc/misc_security.php index 6c0b15ff9..68c6d752c 100644 --- a/upload/source/include/misc/misc_security.php +++ b/upload/source/include/misc/misc_security.php @@ -87,6 +87,8 @@ function securitymessage($subject, $message, $reload = TRUE, $form = FALSE) { echo '
'.$subject.'

'.$message.'
'; security_ajaxshowfooter(); } else { + $charset = getglobal('config/output/charset'); + @header('Content-Type: text/html; charset='.$charset); echo ''; echo ''; echo ''.$subject.''; @@ -134,7 +136,7 @@ function security_ajaxshowheader() { @header("Expires: -1"); @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE); @header("Pragma: no-cache"); - header("Content-type: application/xml"); + @header("Content-type: application/xml; charset=".$charset); echo "\n