2 ms·
If you're dealing with user input, you should always be validating the type before working with it. If you want to compare input to an int, you should be verif
by lexicality 5y ago
If you're dealing with user input, you should always be validating the type before working with it.
If you want to compare input to an int, you should be verifying the input is a valid int before comparing it.
Just hoping the language will do the right thing is a great way to inadvertently allow exploits in your service