From 997103d93125ba219d3c69841b1c6be8afb937fc Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 7 Mar 2017 17:47:02 +0100 Subject: [PATCH] [Yaml] dump escape sequences when possible --- src/Symfony/Component/Yaml/Inline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**