2 ms·
A friend of mine had to fix this recently for PowerShell, which had a regression that caused arguments you passed to programs to be incorrectly escaped to execu
by saurik 10y ago
A friend of mine had to fix this recently for PowerShell, which had a regression that caused arguments you passed to programs to be incorrectly escaped to executed commands.
https://github.com/PowerShell/PowerShell/pull/2182 https://github.com/PowerShell/PowerShell/pull/2182
It is extremely common to get this wrong. Apache Portable Runtime even gets this wrong :/. (I haven't submitted a patch for this yet, but I intend to: I ran into it a couple months ago and then got distracted after working around it in my program by predicting what incorrect escaping might be performed by APR and compensating by adding quotes and escape characters to my input to their open process function... my build is statically linked so I don't feel bad about this temporary hack ;P.)
- quotemstr 10y agoWow. Microsoft really has changed for the better since I left. Not a coincidence, I'm sure. ;-)