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

Sanitize string input on crafting guis #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jeremyshannon
Copy link
Contributor

A player accidentally discovered that if you enter a backslash into the crafting gui's search field, it breaks, and you can't craft anything until the server was restarted. Pretty nasty when the backslash is next to your enter key.
This patch simply ignores backslashes, as well as a few other characters I thought were sensible to exclude.

@jeremyshannon jeremyshannon marked this pull request as draft May 18, 2022 04:46
@jeremyshannon jeremyshannon marked this pull request as ready for review May 18, 2022 05:09
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 this pull request may close these issues.

1 participant