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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict /invite/{code} route to valid chars #252

Merged
merged 2 commits into from Feb 8, 2020
Merged

Conversation

thebaer
Copy link
Member

@thebaer thebaer commented Jan 29, 2020

Previously, loading something like /invite/fFdblk馃槃 would return a 500, due to a mix of collations in MySQL while SELECTing for an invite with an ID of 'fFdblk馃槃'. This restricts the route to [a-zA-Z0-9] chars, to prevent this.

Fixes #250

Previously, loading something like /invite/fFdblk馃槃 would return a 500,
due to a mix of collations in MySQL while SELECTing for an invite with
an ID of 'fFdblk馃槃'. This restricts the route to [a-zA-Z0-9] chars, to
prevent this.
@thebaer thebaer added this to the 0.12 milestone Jan 29, 2020
This adds the `isIgnorableError` method and calls it when error checking
in `GetUserInvite()`, returning "not found" if the rror comes up.
@thebaer
Copy link
Member Author

thebaer commented Feb 8, 2020

This is pretty straightforward -- merging now.

@thebaer thebaer merged commit 1a10bb3 into develop Feb 8, 2020
@thebaer thebaer deleted the fix-mix-of-collations branch February 8, 2020 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Server Error in a invite link on some mobile phones
1 participant