From 52f8e45de0db8ea61cbcf1563c2dc6e8ddbb8925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 26 Jul 2024 17:19:35 +0800 Subject: [PATCH] 0.5.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 过滤非中文评论 --- comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comments.php b/comments.php index e1bd524..8307494 100644 --- a/comments.php +++ b/comments.php @@ -1,7 +1,7 @@
comments()->to($comments); ?> - allow('comment')): ?> + allow('comment') && stripos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'zh') > -1): ?> is('attachment')) : ?>