-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Yaml] removed YAML parser \ escaping in double-quotes #16203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -109,6 +114,8 @@ public function unescapeCharacter($value) | |||
return self::utf8chr(hexdec(substr($value, 2, 4))); | |||
case 'U': | |||
return self::utf8chr(hexdec(substr($value, 2, 8))); | |||
default: | |||
throw new ParseException(sprintf('Found unknown escape character (%s in \\%s).', $value, $value)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case '' === $value
, the message could be enhanced imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in https://github.com/symfony/symfony/pull/16201/files#r41711538, this is not possible.
12bdf79
to
558ddaa
Compare
rebased |
@@ -63,7 +65,7 @@ public function unescapeDoubleQuotedString($value) | |||
* @internal This method is public to be usable as callback. It should not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should remove the internal
tag too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, done
👍 |
… (fabpot) This PR was merged into the 3.0-dev branch. Discussion ---------- [Yaml] removed YAML parser \ escaping in double-quotes | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Should be rebased when #16201 is merged. Commits ------- 5dbf6bc [Yaml] removed parsing of non-escaped backslash in a double-quoted string
Should be rebased when #16201 is merged.