4 ms·
> Take the case of Jennifer Null, for instance, whose name was frequently rejected in input fields because the program treated her last name as a form of code,
by earenndil 8y ago
> Take the case of Jennifer Null, for instance, whose name was frequently rejected in input fields because the program treated her last name as a form of code, rather than text
For all those who say javascript the language is fine: ^^
- jackhack 8y agoShe should change her first name to 'or 1=1;drop table customers;commit;--', sit back, and watch the fireworks. by the way, best use case of this I've ever seen? It was pasted on a sticker on a car's bumper, right below the license plate, in a nice easy to read/OCR font. Now, I've no idea if the speed/traffic/tracking cameras read it and acted on it or not, but the idea amused me.
- excalibur 8y agoObligatory link to Bobby Tables, for those who have been living under a rock: https://xkcd.com/327/ https://xkcd.com/327/
- crooked-v 8y agoThe value `null` and the value `"null"` are not the same thing in Javascript, and `null == 'null'` is `false`.
- cheeze 8y agoAnd if we set x=[0], then x==x is true and x!=x is also true... And []+[] = "" And []+{} = [object Object] And {}+[] = 0 And {}+{} = NaN
- gmiller123456 8y agoIf you have already coerced the variable to be a string, then you can end up with with a null value becoming the string "null". E.g. the below statement evaluates to true: new String(null)=="null" And it used to be a lot easier to make that mistake like something with: ""+a Which different browsers handled differently.
- pstadler 8y agoCan‘t find the JavaScript connection. Guess you‘re simply trying a little too hard trolling around. Edit: To all the Nulls, thanks for the downvotes.
- deleted 8y ago[deleted]
- anonymfus 8y agoThis was probably SQL. As for JavaScript, I recall how I registered an account with user name "undefined" for TheDailyWTF article comments. Later they moved their comment system and forums to Discourse and due to some bug my account was linked under every item in the list of likes under every post.
- duskwuff 8y agoAnother common source of grief for people with the name Null is SOAP web services: https://stackoverflow.com/q/4456438/149341 https://stackoverflow.com/q/4456438/149341
- deleted 8y ago[deleted]