News for hackers. Stuff that matters.
Re:Python's new t-strings by Mawr on Monday April 21, 2025 @06:50AM (#43750409)
But you have to remember to call the right safe() function every time:

    db.execute(f"QUERY WHERE name = {name}")

    db.execute(f"QUERY WHERE name = {safe_html(name)}")
Oops, you're screwed and there is nothing that can detect that. No such issue with a t-string, it cannot be misused.

There are no comments on this comment yet.