Commit 36b4d635 authored by Tom Almeida's avatar Tom Almeida

Let's not allow people to do some dodgy things with cowsay

parent 81686021
...@@ -167,7 +167,7 @@ impl EventHandler for Handler { ...@@ -167,7 +167,7 @@ impl EventHandler for Handler {
iter.by_ref().nth(7); iter.by_ref().nth(7);
let text = iter.as_str(); let text = iter.as_str();
let output = std::process::Command::new("cowsay") let output = std::process::Command::new("cowsay")
.arg(text) .arg(text.escape_default())
.output() .output()
.expect("failed to execute cowsay"); .expect("failed to execute cowsay");
let mut message = MessageBuilder::new(); let mut message = MessageBuilder::new();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment