r/shittyprogramming • u/knflrpn • Nov 30 '18
Unbeatable protection from SQL injection.
Just don't name your table "users" so when they do the "DROP TABLE users;" it doesn't work.
143
Upvotes
r/shittyprogramming • u/knflrpn • Nov 30 '18
Just don't name your table "users" so when they do the "DROP TABLE users;" it doesn't work.
View all comments
Show parent comment
23
u/thehalfwit Dec 01 '18
We automatically change it to "Mable".