News for hackers. Stuff that matters.
Re:Don’t try to sanitize input – escape output by inimino on Thursday February 27, 2020 @11:41AM (#22434855)
"The risky thing" here is a text string. So yes, you should be able to accept an arbitrary string and store it in your database without shooting yourself in the foot, and the same when you read it out of your database and put it in HTML, or JSON, or CSV, or XML, or ASN.1, or protobufs, or in another database.

Handling escaping in HTML or REST API is web dev 101, this shouldn't be controversial.

There are no comments on this comment yet.