28
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 08 Aug 2025
28 points (88.9% liked)
Cybersecurity
8050 readers
122 users here now
c/cybersecurity is a community centered on the cybersecurity and information security profession. You can come here to discuss news, post something interesting, or just chat with others.
THE RULES
Instance Rules
- Be respectful. Everyone should feel welcome here.
- No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia.
- No Ads / Spamming.
- No pornography.
Community Rules
- Idk, keep it semi-professional?
- Nothing illegal. We're all ethical here.
- Rules will be added/redefined as necessary.
If you ask someone to hack your "friends" socials you're just going to get banned so don't do that.
Learn about hacking
Other security-related communities !databreaches@lemmy.zip !netsec@lemmy.world !securitynews@infosec.pub !cybersecurity@infosec.pub !pulse_of_truth@infosec.pub
Notable mention to !cybersecuritymemes@lemmy.world
founded 2 years ago
MODERATORS
Right, and trim is for the beginning and end. FUTO Keyboard will put spaces after periods, so it'll frequently try to enter something like
first. Last @domain.Com
. The casing isn't an issue because emails (and all URLs) should be treated as case insensitive.I wouldn't expect a site to remove all whitespace, only leading and talking trailing whitespace, and then present an error if the email address is obviously invalid. There are libraries for this, and I think a simple regex would also be sufficient to catch most issues (search online for a vetted one).
Spaces are technically allowed before the @, provided you wrap it in quotes. That's incredibly rare and validating that is a bit of a pain, so I'd stick with making it an error instead of silently stripping what could be a valid, but unsupported, email address, since that would cause more confusion than an error.
I didn't know spaces were technically allowed before the @. TIL
Technically, but yeah, it's super rare, and most places don't support it.