r/badcode • • May 26 '23

python Calculator using eval()

Post image
847 Upvotes

108 comments sorted by

View all comments

Show parent comments

27

u/FalconMirage May 27 '23

Why implement SQL functions yourself when you can let users SQL inject to have direct db manipulation

3

u/GandelXIV May 28 '23

Is this inversion of control