Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

sosetup: improve input validation for email address #693

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 5 comments
Closed

sosetup: improve input validation for email address #693

GoogleCodeExporter opened this issue Mar 24, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

sosetup: improve input validation for email address

Original issue reported on code.google.com by doug.bu...@gmail.com on 18 Feb 2015 at 2:39

@GoogleCodeExporter
Copy link
Author

https://groups.google.com/d/topic/security-onion/0una_LNzuNM/discussion

Original comment by doug.bu...@gmail.com on 18 Feb 2015 at 2:41

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

No reason to reinvent the wheel here, the following post explains a regex 
approach to email validation and provides bash formatted options.

http://solidlystated.com/scripting/proper-email-address-validation/

Doubt the link will die but none the less:

^(([-a-zA-Z0-9\!#\$%\&\'*+/=?^_\`{\|}~])+\.)*[-a-zA-Z0-9\!#\$%\&\'*+/=?^_\`{\|}~
]+@\w((-|\w)*\w)*\.(\w((-|\w)*\w)*\.)*\w{2,4}$

Chris White

Original comment by chriswhi...@gmail.com on 18 Feb 2015 at 3:19

  • Added labels: ****
  • Removed labels: ****

@dougburks
Copy link
Contributor

@dougburks
Copy link
Contributor

@dougburks
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants