This commit is contained in:
2020-09-07 11:38:32 +08:00
parent 776aba0dbd
commit 4ffe6c14e5
+1 -1
View File
@@ -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;