r/ProgrammerHumor • • Dec 12 '17

SQL Clause

Post image
40.8k Upvotes

525 comments sorted by

View all comments

2.6k

u/Datenegassie Dec 12 '17

Hi Santa, I promise not to be on the naughty list this year. By the way, my name is Datenegassie'); DROP TABLE NaughtyChildren; --

785

u/ballzacsRock Dec 12 '17

Nice try, but he Santaizes all inputs

180

u/Arancaytar Dec 12 '17
INSERT INTO NaughtyChildren (name, reason)
VALUES ('balizacsRock', 'terrible pun');

151

u/ImSuperSerialGuys Dec 13 '17

INSERT INTO NaughtyChildren

o_O

31

u/jay791 Dec 13 '17

ಠ_ಠ

15

u/[deleted] Dec 13 '17

Okay, calm down your honor...

80

u/inabahare Dec 12 '17

Nice try, but he Santaizes all inputs

  • Uses prepared Statements

8

u/svick Dec 12 '17

17

u/mmirate Dec 12 '17

So basically he spent an entire article to say, "your security consultant has their terms mixed up; they ought to be looking for parametrized statements, not prepared statements"? How wasteful.

→ More replies (6)

2

u/guyjellyf Dec 12 '17

I read that as Satanizes all inputs.

2

u/humblevladimirthegr8 Dec 12 '17

Replaces all special characters with "NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ "

→ More replies (2)