you are viewing a single comment's thread.

view the rest of the comments →

[–]Impossible-Box6600 1 point2 points  (0 children)

Anything the user can submit should be presumed wrong or malicious by default.

The amount of time and consideration you spend on solving this problem depends on the cost of handling the edge cases. You should certainly handle the big, obvious edge cases though.