Simple question but can’t find an answer: is the text input field sanitized or do you need to do that yourself? I’m just passing the string into an if statement…
What does that mean?
Sanitizing is to “filter arbitrary user-provided information to avoid various attacks on your app” (definition from VS Code tutorials). Text provided by the user can contain malicious content such as SQL queries.
There’s an XKCD comic about this:
https://xkcd.com/327/
To anyone reading this thread in the future: Unity provides Character Validation class to only allow input of a certain type.
https://docs.unity3d.com/2018.1/Documentation/ScriptReference/UI.InputField.CharacterValidation.html