Menu

Email validation patch posted

General
2007-01-07
2013-04-25
  • Bob Apthorpe

    Bob Apthorpe - 2007-01-07

    I use plus-tagged addresses (user+tag@example.com) when registering for sites so I tend to get bitten by simple email validation routines that don't accept '+'.

    It's usually easy to fix - in the case of phpDiplomacy, I added a third-party function and changed two lines in objects/security.php, tested it and posted a patch.

    This may interfere with limiting the number of concurrent games someone can play in (someone can register with user+a, user+b, user+c, etc. You'll have to balance that against the benefits of accepting more legal email addresses.

    hth,

    -- Bob

     
    • kestasjk

      kestasjk - 2007-01-11

      Thank you for this patch, I didn't realize you could have + characters in e-mail addresses. I'll include it in the next release.

      Regards,
      Kestas

       
    • kestasjk

      kestasjk - 2007-01-28

      I have integrated your change into the CVS tree, but I can't remember if I've synced with phpdiplomacy.net. Either way it'll be up there in the next sync.

      Thanks,
      Kestas

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.