Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentParse errors from poise::command are not sanitized #263

Closed
getchoo opened this issue May 4, 2024 · 1 comment · Fixed by #277
Closed

ArgumentParse errors from poise::command are not sanitized #263

getchoo opened this issue May 4, 2024 · 1 comment · Fixed by #277

Comments

@getchoo
Copy link

getchoo commented May 4, 2024

let response = if let Some(input) = input {
format!(
"**Cannot parse `{}` as argument: {}**\n{}",
input, error, usage
)

this can easily lead to many side effects with not-very-specially formatted messages like

hello` <@746501080409702461> `world

@jamesbt365
Copy link
Contributor

Could be easily fixed by disabling all mentions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants