From 0f6813e9a5799f71bf540325663380fd0bd463cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Sun, 5 Jun 2022 21:12:38 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=8Ctrim=E3=81=8C=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E3=81=AA=E3=82=88=E3=81=86=E3=81=A7=E3=81=99=E3=80=8D=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/search.php b/www/search.php index 71f43f3..1f6e6bc 100644 --- a/www/search.php +++ b/www/search.php @@ -41,7 +41,7 @@ mysqli_execute($pages); while (mysqli_stmt_fetch($pages)) { - $cq = preg_split('/(\ +)/i', $q); + $cq = preg_split('/(\ +)/i', trim($q)); $cpreg = '('; foreach ($cq as $k => $v) { $cpreg .= $v;