8000 Is there a reason not to use escapeshellarg in Process · Issue #29469 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Is there a reason not to use escapeshellarg in Process #29469

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
tomasfejfar opened this issue Dec 5, 2018 · 2 comments
Closed

Is there a reason not to use escapeshellarg in Process #29469

tomasfejfar opened this issue Dec 5, 2018 · 2 comments
Labels

Comments

@tomasfejfar
Copy link
Contributor

I've noticed that \Symfony\Component\Process\Process::escapeArgument does not use php's native escapeshellarg function, but rather implements escaping in userland. That does not take advantage of potential security fixes in PHP itself.

Is there a reason why it's not using it?

@apfelbox
Copy link
Contributor
apfelbox commented Dec 5, 2018

See discussion in #21347 (apparently it doesn't work reliably across all supported OS)

@tomasfejfar
Copy link
Contributor Author

Thx.

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

No branches or pull requests

3 participants
0