Re:Advice to Young Web Developers
by SahAssar on Thursday June 18, 2020 @06:33PM
(#23568886)
> At least sanitize in a way that won't break the server but will throw an error.
If you need to sanitize to avoid breaking the server then the server is already broken. Also, never sanitize, validate on input and escape/encode on output, but sanitization (meaning removing/cleaning invalid input) is the wrong way.
If you need to sanitize to avoid breaking the server then the server is already broken. Also, never sanitize, validate on input and escape/encode on output, but sanitization (meaning removing/cleaning invalid input) is the wrong way.