diff --git a/src/Symfony/Component/Yaml/Inline.php b/src/Symfony/Component/Yaml/Inline.php index 14137f14b7..2109f08bb3 100644 --- a/src/Symfony/Component/Yaml/Inline.php +++ b/src/Symfony/Component/Yaml/Inline.php @@ -688,7 +688,7 @@ class Inline private static function isBinaryString($value) { - return !preg_match('//u', $value) || preg_match('/[^\x09-\x0d\x20-\xff]/', $value); + return !preg_match('//u', $value) || preg_match('/[^\x00\x07-\x0d\x1B\x20-\xff]/', $value); } /**