diff --git a/upload/source/module/forum/forum_viewthread.php b/upload/source/module/forum/forum_viewthread.php index 4912b11ab87012cca31f16205c9e8f83b282b5f5..489f1cc5adbeba3922510e844488b678929789b5 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 7e1dbdace50093768ba9f1eb1409905e5d079027..54acf033831c64661c5e06114ae74812f1687164 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'); }