8000 [Yaml] valid comment crashes · Issue #38223 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Yaml] valid comment crashes #38223

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

Closed
ro0NL opened this issue Sep 17, 2020 · 5 comments
Closed

[Yaml] valid comment crashes #38223

ro0NL opened this issue Sep 17, 2020 · 5 comments

Comments

@ro0NL
Copy link
Contributor
ro0NL commented Sep 17, 2020

Symfony version(s) affected: 5.1

Given e.g.

foo:
    bar:
        baz:
            access_key: 'literal'#'%env(ACCESS_KEY)%'

it crashes with Unexpected characters near "#'%env(ACCESS_KEY)%'" (note the quotes around literal)

but is succesfully parses at http://www.yamllint.com/

adding a space before # solves it in Symfony, but i was too lazy :)

@xabbuh
Copy link
Member
xabbuh commented Sep 17, 2020

@xabbuh
Copy link
Member
xabbuh commented Sep 17, 2020

I am going to look into it.

@xabbuh
Copy link
Member
xabbuh commented Sep 18, 2020

@ro0NL Can you confirm that #38229 fixes this?

@fabpot fabpot closed this as completed Sep 18, 2020
xabbuh added a commit that referenced this issue Sep 18, 2020
This PR was merged into the 3.4 branch.

Discussion
----------

[Yaml] fix parsing comments not prefixed by a space

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38223
| License       | MIT
| Doc PR        |

Commits
-------

35b223a fix parsing comments not prefixed by a space
@ro0NL
Copy link
Contributor Author
ro0NL commented Sep 18, 2020

@xabbuh yes, all good 👍

@xabbuh
Copy link
Member
xabbuh commented Sep 18, 2020

@ro0NL Thanks for the confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0