Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ash
Discord Bot
Commits
36b4d635
Commit
36b4d635
authored
Aug 10, 2019
by
Tom Almeida
Browse files
Let's not allow people to do some dodgy things with cowsay
parent
81686021
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
36b4d635
...
...
@@ -167,7 +167,7 @@ impl EventHandler for Handler {
iter
.by_ref
()
.nth
(
7
);
let
text
=
iter
.as_str
();
let
output
=
std
::
process
::
Command
::
new
(
"cowsay"
)
.arg
(
text
)
.arg
(
text
.escape_default
()
)
.output
()
.expect
(
"failed to execute cowsay"
);
let
mut
message
=
MessageBuilder
::
new
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment