Fix for cut “illegal byte sequence” error
This commit is contained in:
4
Yuba.php
4
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).""); }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user