Skip to content

os.system is bad, use subprocess so commands can't be injected#33

Open
ericfrederich wants to merge 1 commit intoyask123:masterfrom
ericfrederich:master
Open

os.system is bad, use subprocess so commands can't be injected#33
ericfrederich wants to merge 1 commit intoyask123:masterfrom
ericfrederich:master

Conversation

@ericfrederich
Copy link

subprocess module has calls which take lists of arguments making it impossible for the video link to contain something malicious which could escape the youtube-dl call.

@mondayrain
Copy link
Contributor

@ericfrederich gooood call

@ericfrederich
Copy link
Author

I messed up a push and it closed this. Re-opening. Please consider merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments