ucfopen / crossword-materia-widget

A Materia quiz and study tool that uses words and clues to randomly generate a crossword puzzle
GNU Affero General Public License v3.0
2 stars 8 forks source link

Whitespace can be unintentionally added in player responses #47

Open clpetersonucf opened 2 years ago

clpetersonucf commented 2 years ago

While the player does a good job of preventing whitespace in most student inputs, there is one circumstance where it isn't explicitly prevented: when a user is focused on a character slot that was previously filled out, for example where words intersect. A user can enter whitespace characters and then use the arrow keys or cursor to manually select the next character slot, which results in malformed response strings being sent to Materia for scoring.