From b4e393bc47322cda99e9a52df6a964a1a6062130 Mon Sep 17 00:00:00 2001 From: ONEXIN Date: Mon, 24 Aug 2020 10:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=BB=99=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84=E8=AE=BA=E5=9D=9B=E8=B4=B4=E5=AD=90?= =?UTF-8?q?=E5=92=8C=E9=97=A8=E6=88=B7=E6=96=87=E7=AB=A0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?404=E7=8A=B6=E6=80=81=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/module/forum/forum_viewthread.php | 1 + upload/source/module/portal/portal_view.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/upload/source/module/forum/forum_viewthread.php b/upload/source/module/forum/forum_viewthread.php index 4912b11ab..489f1cc5a 100644 --- a/upload/source/module/forum/forum_viewthread.php +++ b/upload/source/module/forum/forum_viewthread.php @@ -23,6 +23,7 @@ if(!empty($_GET['checkrush']) && preg_match('/[^0-9_]/', $_GET['checkrush'])) { } if(!$_G['forum_thread'] || !$_G['forum']) { + header("HTTP/1.1 404 Not Found"); showmessage('thread_nonexistence'); } diff --git a/upload/source/module/portal/portal_view.php b/upload/source/module/portal/portal_view.php index 7e1dbdace..54acf0338 100644 --- a/upload/source/module/portal/portal_view.php +++ b/upload/source/module/portal/portal_view.php @@ -13,6 +13,7 @@ if(!defined('IN_DISCUZ')) { $aid = empty($_GET['aid'])?0:intval($_GET['aid']); if(empty($aid)) { + header("HTTP/1.1 404 Not Found"); showmessage('view_no_article_id'); } $article = C::t('portal_article_title')->fetch($aid); @@ -20,6 +21,7 @@ require_once libfile('function/portalcp'); $categoryperm = getallowcategory($_G['uid']); if(empty($article) || ($article['status'] > 0 && $article['uid'] != $_G['uid'] && !$_G['group']['allowmanagearticle'] && empty($categoryperm[$article['catid']]['allowmanage']) && $_G['adminid'] != 1 && $_GET['modarticlekey'] != modauthkey($article['aid']))) { + header("HTTP/1.1 404 Not Found"); showmessage('view_article_no_exist'); } -- Gitee