Skip to content

Commit 5690d4a

Browse files
Merge branch '6.3' into 6.4
* 6.3: fix test remove not needed PHP version check [Validator] added missing Portuguese and Albanian translations Fix bad merge CS fix [ErrorHandler] Don't format binary strings [Validator] Consistently use "This value is not" instead of "This is not" in error messages [Messenger] Improve Redis integration tests [Validator] added missing Estonian and Romanian translations
2 parents 97af829 + b382351 commit 5690d4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Extension/CodeExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public function formatArgs(array $args): string
9696
$formattedValue = '<em>'.strtolower(htmlspecialchars(var_export($item[1], true), \ENT_COMPAT | \ENT_SUBSTITUTE, $this->charset)).'</em>';
9797
} elseif ('resource' === $item[0]) {
9898
$formattedValue = '<em>resource</em>';
99+
} elseif (preg_match('/[^\x07-\x0D\x1B\x20-\xFF]/', $item[1])) {
100+
$formattedValue = '<em>binary string</em>';
99101
} else {
100102
$formattedValue = str_replace("\n", '', htmlspecialchars(var_export($item[1], true), \ENT_COMPAT | \ENT_SUBSTITUTE, $this->charset));
101103
}

0 commit comments

Comments
 (0)