From 4ffe6c14e5fe75c78ad09b7d8e1e35683290b19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Sep 2020 11:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Process/ServerInotify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index fedf8a69..92384f4e 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -212,7 +212,7 @@ class ServerInotify extends Process $files = scandir($dir); foreach ($files as $f) { - if ($f == '.' || $f == '..' || $f == 'runtime' || !preg_match('/\.php/', $f)) { + if ($f == '.' || $f == '..' || $f == 'runtime' || !preg_match('/\.php$/', $f)) { continue; } $path = $dir . '/' . $f;