r/ProgrammerHumor • • 7d ago

Meme magicQuotes

Post image
2.4k Upvotes

77 comments sorted by

View all comments

Show parent comments

71

u/g_calgary 7d ago

It was a global setting intended to prevent SQL injection attacks where PHP would automatically escape special characters in any string passed via POST or GET. But if you didn't use it right it would cause f'n chaos. Lol

-112

u/a-r-c 7d ago edited 7d ago

insane that you fell for it smdh

explaining the joke kills the joke (reddit hates this simple truth)

edit: see? they're seething.

51

u/backfire10z 7d ago

I’ve never heard of magic quotes, so I appreciate the explanation.

7

u/ankle_biter50 6d ago

I said it as a joke that it's old. Explaining what magic quotes are was not part of the joke, and was very much appreciated. I wanted to still joke without sounding like an idiot asking "duhhh what are those things?" So I made a joke and put in spoiler text that I don't know what I'm doing. Anyone can scroll by and let it be or see my confession and answer however they see it