Nah, it’s just a old school chat bot following a predefined flow chart. And in this flowchart someone implemented an improper email check.
It’s pretty much the same as if there was just a website with an email field which then complains about a non valid email which in fact is very valid. And this is pretty common, the official email definition isn’t even properly followed by most mail providers (long video but pretty funny and interesting if you’re interested in the topic).
You can use symbols like [ ] . { } ~ = | $ in the local-part (bit before the @) of email addresses. They’re all perfectly valid but a lot of email validators reject them. You can even use spaces as long as it’s using quotation marks, like “hello world”@example.com.
A lot of validators try to do too much. Just strip spaces from the start and end, look for an @ and a ., and send an email to it to validate it. You don’t really care if the email address looks valid; you just care whether it can actually receive email, so that’s what you should be testing for.
You’re not going to get code injection via an email address field. Just make sure you’re using prepared statements (if you’re using a SQL database) and that you properly escape the email if you output it to a HTML page.
Even “algorithm”, you could say! The text adventure game I made in BASIC when I was 14 is going to blow your mind. It is 100% artificial and uses logic (IF statements), hence AI!
I don’t think you know what AI is. A bunch of if statements can, in fact, constitute an AI. You don’t know what you’re talking about, stop trying to pretend you do.
AI is a broad concept, a pathfinding algorithm can be considered AI, a machine learning image generator can be considered AI, a shitty chatbot (like this one) can be considered AI. Reducing something to a stupid sentence like “just a bunch of if statements” to try to make it seem absurd is. I can reduce something like ChatGPT the same way and it’d be pretty much as accurate as your take.
Syndic@feddit.de 2 years ago
Nah, it’s just a old school chat bot following a predefined flow chart. And in this flowchart someone implemented an improper email check.
It’s pretty much the same as if there was just a website with an email field which then complains about a non valid email which in fact is very valid. And this is pretty common, the official email definition isn’t even properly followed by most mail providers (long video but pretty funny and interesting if you’re interested in the topic).
dan@upvote.au 2 years ago
You can use symbols like [ ] . { } ~ = | $ in the local-part (bit before the @) of email addresses. They’re all perfectly valid but a lot of email validators reject them. You can even use spaces as long as it’s using quotation marks, like
“hello world”@example.com.A lot of validators try to do too much. Just strip spaces from the start and end, look for an
@and a., and send an email to it to validate it. You don’t really care if the email address looks valid; you just care whether it can actually receive email, so that’s what you should be testing for.itsralC@lemm.ee 2 years ago
Not even a dot: TLDs are valid email domains. joe@google is a correct address.
RubberElectrons@lemmy.world 2 years ago
Mmm… That doesn’t seem right, it’s usually gotta be fully expanded to at least a particular A record/MX.
How would you tie the tld itself to an MX?
darkpanda@lemmy.world 2 years ago
To this point, there’s a website dedicated to the subject. Some of the regexes get pretty wild…
emailregex.com
tomi000@lemmy.world 2 years ago
Yea but most of the time its more important to block code injection than to have the last promille of valid mail adresses be accepted.
dan@upvote.au 2 years ago
You’re not going to get code injection via an email address field. Just make sure you’re using prepared statements (if you’re using a SQL database) and that you properly escape the email if you output it to a HTML page.
ChaoticNeutralCzech@feddit.de 2 years ago
I think emailregex.com offers best of both worlds.
douglasg14b@lemmy.world 2 years ago
Don’t forget +
Super handy with Google email.
Malfeasant@lemm.ee 2 years ago
The first rule of tautology club is the first rule of tautology club.
elephantium@lemmy.world 2 years ago
I’m listening ;)
Venat0r@lemmy.world 2 years ago
That is AI…
ChaoticNeutralCzech@feddit.de 2 years ago
Even “algorithm”, you could say! The text adventure game I made in BASIC when I was 14 is going to blow your mind. It is 100% artificial and uses logic (IF statements), hence AI!
lud@lemm.ee 2 years ago
Yeah, that video is great. He has a lot of interesting and funny talks like that.
force@lemmy.world 2 years ago
yes but that would be an AI still
stom@lemmy.world 2 years ago
A bunch of IF statements don’t qualify as an AI. That’s not how that works.
force@lemmy.world 2 years ago
I don’t think you know what AI is. A bunch of
ifstatements can, in fact, constitute an AI. You don’t know what you’re talking about, stop trying to pretend you do.AI is a broad concept, a pathfinding algorithm can be considered AI, a machine learning image generator can be considered AI, a shitty chatbot (like this one) can be considered AI. Reducing something to a stupid sentence like “just a bunch of if statements” to try to make it seem absurd is. I can reduce something like ChatGPT the same way and it’d be pretty much as accurate as your take.
sacbuntchris@lemmy.world 2 years ago
The problem is their website also implemented an invalid email check when I try to login which is what got me to this point