-
Notifications
You must be signed in to change notification settings - Fork 23
escape binary php path #147
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
escape binary php path #147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is escapeshellarg()
the correct function to use ? Or should this be escapeshellcmd()
?
Note: if it should be escapeshellcmd()
- mind the warning about Windows paths below the examples.
Oh - and I realize this might not be straight-forward, but did you try to add a test for this ? |
For me |
f27cef9
to
ebc984b
Compare
I'm not sure you understood my question - why do you think |
Oh sorry! |
Clearly my questions didn't have the intended effect,..
|
Oh and another thing I'm wondering about is whether this is the right place to do the escaping. Shouldn't the escaping be done at the point when the input is actually used (not just stored and passed around). |
Indeed, it should fixed before Sorry |
This PR allows to fix php executable path when path like this :
/Users/xxxx/Application Support/Herd/bin/php82
Without escaping, binary was not executable because it stop to
/Users/xxx/Application