Skip to content
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

[VarExporter] escape unicode chars involved in directionality #43909

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

According to https://www.trojansource.codes/, source code should never contain directional characters.
Let's escape them.

@jderusse
Copy link
Member

jderusse commented Nov 3, 2021

What's about Php dumpers like Symfony\Component\Intl\Data\Bundle\Writer\PhpBundleWriter?

@lyrixx lyrixx changed the title [VarExporter] espace unicode chars involved in directionality [VarExporter] escape unicode chars involved in directionality Nov 3, 2021
@nicolas-grekas
Copy link
Member Author

They could be updated to use VarExporter. But from another pov, what's the point since all this is going to be autogenerated, and the "vulnerability" targets human reviews?

@stof
Copy link
Member

stof commented Nov 3, 2021

@jderusse for cases relying on var_export, you might request the same from PHP itself.

@fabpot
Copy link
Member

fabpot commented Nov 3, 2021

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 7eeafa1 into symfony:4.4 Nov 3, 2021
@nicolas-grekas nicolas-grekas deleted the ve-lre branch November 6, 2021 10:26
This was referenced Nov 22, 2021
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.

5 participants