Closed luxaritas closed 6 years ago
Kudos to Astromon for finding this one.
Fixed in #42
Oops, this was not fixed - wrong issue!
Just realized that this doesn't just apply to the test page. There are three things that need fixing:
decodeURIComponent
needs to be used when getting the username parameter from the URL of the iframe(Edit: Added the task list to the first post in the issue so that it can be tracked)
For example, logging in with a space at the end of your username winds up adding %20 to your username, even though it is accepted for a login. Really, the "correct" username should be gotten from the API.
Edit: Per https://github.com/EteRNAgame/HTML-Chat/issues/39#issuecomment-293789894, this is the full extent of how this issue needs to be solved
decodeURIComponent
needs to be used when getting the username parameter from the URL of the iframe (https://github.com/EteRNAgame/HTML-Chat/commit/f31a32a7176ded86e9d2f5108c14a7d78052e235)