We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23383
    • 138 Posts
    In fact, I’m just posting this because I had a bug in the websignup, allowing people with an email adress like this : street some_text N°12 foo bar

    to pass the email checking. So I changed the regexp :

    I changed in the websignup.inc.php this line (line 65):
    if($email=='' || !ereg("^[-!#$%&'*+./0-9=?A-Z^_`a-z{|}~]+", $email)){ 
    

    by this one
    if ($email=='' || !ereg("[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+",$email)){
    


    Am I the only one with that problem ?
      • 17622
      • 39 Posts
      No, I tested the email address with "test" and it went through, no error. Applied your patch and it detects it fine now.

      Thanks,
      Luke.
        • 23383
        • 138 Posts
        It’s still not in the modx 0.9.6 release.... It’s tiring to change that every time I install a new modx website... Is it possible to add it for next release ?
          • 22303 MODX Staff
          • 10,725 Posts
          If this is posted as a feature request or bug report in the tracker, it will have a much better chance of being incorporated into future releases. Though, you could certainly make a copy of your custom websignup directory under another name and avoid the problem with upgrades; I do this on almost every site I build, especially when I have to integrate custom user systems.