Message107322
| Author |
csernazs |
| Recipients |
Alexander.Belopolsky, Christophe Simonis, brian.curtin, csernazs, eric.smith, larry, r.david.murray |
| Date |
2010年06月08日.13:30:26 |
| SpamBayes Score |
0.008939546 |
| Marked as misclassified |
No |
| Message-id |
<1276003828.03.0.06057422021.issue7839@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I would say that both string and list should be accepted in args, and depending on the shell parameter, the module should create a list or a string from the specified list/string.
We already have a list2cmdline function to convert a list to string, we would only need to create the inverse of this function to convert a string to a list.
Executing a program whose parameters are coming from external source (eg. user input) can result security problems if those are not specified as a list and in this case I would be really happy to specify my parameters as a list to Popen and it would do the appropriate conversions as above. |
|