From 6da60452874420a0b738fbf158e7bb145e6788bf Mon Sep 17 00:00:00 2001 From: tec <tec@ucc.gu.uwa.edu.au> Date: Fri, 27 Mar 2020 13:01:55 +0800 Subject: [PATCH] Make cowsay backtick-safe --- src/voting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/voting.rs b/src/voting.rs index 12ecfc6..d1b407d 100644 --- a/src/voting.rs +++ b/src/voting.rs @@ -52,7 +52,7 @@ impl Commands { .expect("failed to execute fortune/cowsay") }; let mut message = MessageBuilder::new(); - message.push_codeblock( + message.push_codeblock_safe( String::from_utf8(output.stdout).expect("unable to parse stdout to String"), None, ); -- GitLab