Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Oct 12, 2015

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Oct 11, 2015

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.

@@ -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));
Copy link
Member

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

Copy link
Member Author

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.

@fabpot fabpot force-pushed the yaml-specs branch 2 times, most recently from 12bdf79 to 558ddaa Compare October 12, 2015 10:26
@fabpot
Copy link
Member Author

fabpot commented Oct 12, 2015

rebased

@@ -63,7 +65,7 @@ public function unescapeDoubleQuotedString($value)
* @internal This method is public to be usable as callback. It should not
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, done

@nicolas-grekas
Copy link
Member

👍

@fabpot fabpot merged commit 5dbf6bc into symfony:master Oct 12, 2015
fabpot added a commit that referenced this pull request Oct 12, 2015
… (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
@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants