Skip to content

Commit

Permalink
fix: can't output Config\Encryption if it has a binary string key
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 28, 2023
1 parent 338edce commit 7374b58
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions system/Commands/Utilities/ConfigCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,12 @@ private function getKintD(object $config): string
$output = ob_get_clean();

$output = trim($output);
$output = preg_replace(
'/\x1b\[36m.*┘\x1b\[0m/su',
'',
$output
);
$output = preg_replace(
'/\x1b\[36m.*Called from .*\x1b\[0m/su',
'',
$output
);

return trim($output);
$lines = explode("\n", $output);
array_splice($lines, 0, 3);
array_splice($lines, -3);

return implode("\n", $lines);
}

/**
Expand Down

0 comments on commit 7374b58

Please sign in to comment.