Announcement

Collapse
No announcement yet.

User can't register with .computer email domain

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • User can't register with .computer email domain

    I have a user who tries to register with an email adddress like user@user.computer. vBulletin won't accept this. Says it's an invalid email address. I did some testing and found that it won't accept any email address with a .computer top domain. I don't have that or anything like it blocked in the user banning options. Is this a known issue or is there some setting I should be looking at? Thanks in advance for any insight.
    Our forums: http://forums.opensuse.org, http://forums.microfocus.com, http://forums.netiq.com, and http://forums.suse.com

  • #2
    That's not a valid e-mail address. user.computer is not a valid e-mail host.

    Comment


    • #3
      Originally posted by kgroneman View Post
      I have a user who tries to register with an email adddress like user@user.computer. vBulletin won't accept this. Says it's an invalid email address. I did some testing and found that it won't accept any email address with a .computer top domain. I don't have that or anything like it blocked in the user banning options. Is this a known issue or is there some setting I should be looking at? Thanks in advance for any insight.
      It should work as we don't check for specific TLDs and .computer has been a TLD since 2014. I was able to register with the email jsmith@domain.computer on my local test site. I have vBulletin 4.2.5 installed.

      Here is the code we use to check email:
      Code:
      // #############################################################################
      /**
      * Tests a string to see if it's a valid email address
      *
      * Param    string  Email address
      *
      * return   boolean
      */
      function is_valid_email($email)
      {
          // checks for a valid email format
          return preg_match('#^[a-z0-9.!\#$%&\'*+\-/=?^_`{|}~]+@([0-9.]+|([^\s\'"<>@,;]+\.+[a-z]{2,24}))$#si', $email);
      }
      What is the error that you're getting with the domain?
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud customization and demonstration site.
      vBulletin 5 Documentation - Updated every Friday. Report issues here.
      vBulletin 5 API - Full / Mobile
      Vote for your most annoying bugs.
      I am not currently available for vB Messenger Chats.

      Comment


      • #4
        Interesting. It is a valid email address as I can communicate with the user with it. The error the user gets and that I get when trying to create a user with .computer domain is "You entered an invalid email address." so it looks like that function is picking it up as invalid somehow. I'll look more into it.
        Our forums: http://forums.opensuse.org, http://forums.microfocus.com, http://forums.netiq.com, and http://forums.suse.com

        Comment


        • #5
          Create their account in the AdminCP. Strangely enough, vBulletin 4.X doesn't even require an email created that way.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud customization and demonstration site.
          vBulletin 5 Documentation - Updated every Friday. Report issues here.
          vBulletin 5 API - Full / Mobile
          Vote for your most annoying bugs.
          I am not currently available for vB Messenger Chats.

          Comment


          • #6
            Yup. I'm trying to create it in admincp and get that error. I tried to create random users using @[whatever].computer Still scratching head but will dig deeper. It's not critical, they guy had a gmail account that worked, but I'm still curious.
            Our forums: http://forums.opensuse.org, http://forums.microfocus.com, http://forums.netiq.com, and http://forums.suse.com

            Comment


            • #7
              Check what e-mail addresses you have banned (in banning options).
              This is my signature.

              Comment


              • kgroneman
                kgroneman commented
                Editing a comment
                Thanks Already checked. I don't have that or anything like it blocked in the user banning options

            • #8
              I recall a bug/issue in an older version of VB that was addressed when the new TLDs started getting used years back- what version of 4.x are you using?

              I was also able to create a user with the .computer TLD in 4.2.5, it is possible some sort of anti-spam 3rd party add-on could be causing the issue.

              Comment


              • #9
                Hi Joe. We're on 4.22 patch level 4 - Kim
                Our forums: http://forums.opensuse.org, http://forums.microfocus.com, http://forums.netiq.com, and http://forums.suse.com

                Comment


                • #10
                  I too remember Paul talking about this at some point in the past, relating to the length of the TLD.

                  It was fixed at some point - I tried it in 4.2.3 and it worked, so if you are on 4.2.2 and it doesn't, I;d suggest upgrading just to 4.2.3 at this point.
                  MARK.B | vBULLETIN SUPPORT

                  TalkNewsUK - My vBulletin 5.4.0 Demo - FEATURING "ROUTE BY NODE"!
                  AdminAmmo - My Cloud Demo

                  Comment


                  • #11
                    If you can't upgrade immediately, you might be able to modify the regex in the is_valid_email function(). The function is in /includes/functions.php.
                    Last edited by Wayne Luke; Fri 26th Jan '18, 1:08pm.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
                    vBulletin 5 Documentation - Updated every Friday. Report issues here.
                    vBulletin 5 API - Full / Mobile
                    Vote for your most annoying bugs.
                    I am not currently available for vB Messenger Chats.

                    Comment


                    • #12
                      Here is the relevant code as it is in 4.2.3:
                      PHP Code:
                      function is_valid_email($email)
                      {
                          
                      // checks for a valid email format
                          
                      return preg_match('#^[a-z0-9.!\#$%&\'*+\-/=?^_`{|}~]+@([0-9.]+|([^\s\'"<>@,;]+\.+[a-z]{2,63}))$#si'$email);

                      MARK.B | vBULLETIN SUPPORT

                      TalkNewsUK - My vBulletin 5.4.0 Demo - FEATURING "ROUTE BY NODE"!
                      AdminAmmo - My Cloud Demo

                      Comment

                      Working...
                      X