Skip to content

Should an email address be able to begin with these characters? #61

@troyhunt

Description

@troyhunt

This is more of an open question than something I think we should immediately do:

I've just run this across a breach I'm loading now that has about 2.2M addresses found. Over 1k of them at the end of the file begin with one of the following characters:

  1. \
  2. /
  3. `
  4. '
  5. {
  6. }
  7. |
  8. !
  9. ~

My get feel is that these chars should be stripped and are no valid use cases where they should legitimately exist at the beginning of the address (or probably anywhere in the address). Just by way of example:

image

I'm more inclined to strip these than include them, what do we all think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions