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
Yaml: Escaping goes wrong somewhere #11789
Comments
hmm, looks like the |
Hm, this seems to be done on purpose (see this test). Though I'm not sure that this is correct. |
nope, in this test, the original string does not contain a backslash. it contains CRLF (i.e. |
@stof Thanks, you're right. I didn't know that YAML supports them and I didn't look into the specs. :( So, if I'm not wrong, the backslash before the "n" needs to be properly escaped by the |
not in the test you linked. But in the example reported in the issue, yes. All |
@stof Thank you. I'll try to fix it. |
…abbuh) This PR was merged into the 2.3 branch. Discussion ---------- [YAML] properly mask escape sequences in quoted strings | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #11789 | License | MIT | Doc PR | Commits ------- a7d0cf2 properly mask escape sequences in quoted strings
I've added it to the test-framework with bdee3e4. I don't have phpUnit installed so I haven't tried them. Could you please check once again I didn't make any mistakes in it?
The text was updated successfully, but these errors were encountered: