From 46eb1d19e8be454366dfe7b6bbb969363ae4fca7 Mon Sep 17 00:00:00 2001 From: slaninas Date: Sat, 2 Jul 2022 20:13:00 +0200 Subject: [PATCH] Prevent code execution --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4548de4..4411392 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,7 +98,7 @@ fn send_tweet(tweet: &Tweet, secret: &String, relays: &Vec) { let output = std::process::Command::new("bash") .arg("-c") .arg(format!( - "/nostril/nostril --envelope --sec {} --content \"{}\"", + "/nostril/nostril --envelope --sec {} --content \'{}\'", secret, formatted )) .stdout(std::process::Stdio::piped())