From 5ec8080efed862bffb6f72f80f5071bdbde0a5e8 Mon Sep 17 00:00:00 2001 From: profiteroles Date: Thu, 13 Jun 2019 00:01:29 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20for=20cut=20=E2=80=9Cillegal=20byte=20seq?= =?UTF-8?q?uence=E2=80=9D=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yuba.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Yuba.php b/Yuba.php index 90de0f1..1b23c97 100755 --- a/Yuba.php +++ b/Yuba.php @@ -1100,7 +1100,7 @@ foreach ($files as $splFileInfo) { unset($fkind); if ($type == "file") { - $fkind = trim(shell_exec("file -b -p ".$shellpath." | cut -f1 -d,")); + $fkind = trim(shell_exec("export LC_ALL=C; file -b -p ".$shellpath." | cut -f1 -d,")); $stmt->BindValue(":fkind",@$fkind); } @@ -1188,7 +1188,7 @@ foreach ($files as $splFileInfo) { $message[] = "ctime"; } - if (count($message)) { echo msg("FILE = ".$filename."; CHANGE = ".implode(", ", $message).""); } + if (count($message)) { echo msg(" CHANGE = ".implode(", ", $message).""); } }