That's easy, just call it Jhon\nDoe
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
John\0Doe will fuck with all C (and C based derivatives) software that touches it.
Nah, it will end up simply as "John" in the database. You need "John%sDoe" to crash C software with unsafe printf() calls, and even then it's better to use several "%s"
C and C derivatives will be fine unless they're fucking up encoding.
Which rarely, if ever, happens. Especially with US software.
Just noticed that the listing for ; DROP TABLE "COMPANIES"; -- LTD has been redacted by the government website‽
Is it missing an apostrophe and a dash? Or they registered the wrong name?
Anyway, the use of quotes seem to have backfired. I blame Excel.
Apparently they didn't include the single quote at the beginning because they wanted to hint at the exploit without actually triggering it.
(and Lemmy seems to combine two dashes into one)
What about an open bracket? (
I'd rather include a bell character '\a'
And that's why you're not safe for work.
Bing Crosby
I really can't even begin to properly explain this because it's just so many layers of intuition. No, you absolutely cannot have a line break in your name. That's not a letter. That said, I'm fully prepared for someone to give me an example of some writing system that uses line breaks for unique purposes apart from spaces.
Chaotic neutral response: A line break is just white space.
Most languages use white spaces
its not just a white space. Sometimes it entails a white space, when theres still space on that line. Sometimes it does not.
Unix or dos format?
Anyway, you probably need to put a backslash before it to indicate line continuation.
But wouldn't it be better to use something more traditional, such as ?
HTML is more traditional than \n
?
True, poor choice of phrase.
But I was thnking of something like
#define my_macro does not fit\
on one line
Am I allowed to include sql command words such as drop table in my child's name?
Simmer down, Bobby
Always sanitize your Data inputs.
John doe is invaild syntax.
It just be
(John \doe);
This sounds like the start of another sovcit "loophole"