News for hackers. Stuff that matters.
Re:The Stupid Programmer Manifesto by nerdchum on Thursday June 15, 2023 @01:16PM (#36343696)
Yeah, other than sanitizing and validating, you shouldn't be transforming data or you're headed into a state management bug nightmare.
Re:The Stupid Programmer Manifesto by ang_cire on Saturday June 17, 2023 @02:37PM (#36373090)
So you think that if e.g. Stack exchange is storing code examples in their database, they shouldn't transform the special characters into e.g. url-encoding or some other escaped format?

How are you going to validate it doesn't do something harmful?

And also, you keep mentioning sanitization as though it's not inherently a transform. Stripping out whitespace? That's a transform. Just because it's a one-directional transform doesn't make it not one.