Merge pull request #127 from creative-commoners/pulls/2.3/chars

FIX Ignore invalid byte character
This commit is contained in:
Guy Sartorelli 2022-04-21 18:40:22 +12:00 committed by GitHub
commit 84e13ffde3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -858,7 +858,9 @@ class PostgreSQLSchemaManager extends DBSchemaManager
$argList = array(); $argList = array();
$nextArg = ""; $nextArg = "";
foreach ($bytes as $byte) { foreach ($bytes as $byte) {
if ($byte == "00") { if ($byte == '\x') {
continue;
} elseif ($byte == "00") {
$argList[] = $nextArg; $argList[] = $nextArg;
$nextArg = ""; $nextArg = "";
} else { } else {