remove_noreply_address() - use sanitized address

This commit is contained in:
David Duque 2021-03-07 23:05:46 +00:00
parent 6078a994f2
commit b3a3136859
No known key found for this signature in database
GPG key ID: 913FE0F2477D7D6B

View file

@ -591,7 +591,7 @@ def remove_noreply_address(env, address, do_kick=True):
# yeet yeet deleet
conn, c = open_database(env, with_connection=True)
c.execute("DELETE FROM noreply WHERE email=?", (address,))
c.execute("DELETE FROM noreply WHERE email=?", (email,))
if c.rowcount != 1:
return ("That's not a noreply (%s)." % address, 400)
conn.commit()