mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-03 19:02:48 +00:00
Fix --exec
placeholder expansion on Windows
See https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-45hg-7f49-5h56 for more details Authored by: Grub4K
This commit is contained in:
@@ -18,7 +18,7 @@ class ExecPP(PostProcessor):
|
|||||||
if filepath:
|
if filepath:
|
||||||
if '{}' not in cmd:
|
if '{}' not in cmd:
|
||||||
cmd += ' {}'
|
cmd += ' {}'
|
||||||
cmd = cmd.replace('{}', shell_quote(filepath))
|
cmd = cmd.replace('{}', shell_quote(filepath, shell=True))
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
|
Reference in New Issue
Block a user