there is vulnerability related to argument injection
This commit is contained in:
parent
8b9a7a0bcc
commit
910245061e
1 changed files with 1 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ impl fmt::Display for YtDlpError {
|
|||
|
||||
pub struct YtDlp {}
|
||||
|
||||
// BUG: REAL ARGUMENT INJECTION! FIX ASAP
|
||||
impl YtDlp {
|
||||
pub async fn load_info(url: &str) -> Result<YtDlpInfo, YtDlpError> {
|
||||
let output = spawn("python", ["-m", "yt_dlp", url, "-j"]).await?;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue