Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1567

cPanel module should strip www. from domains

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 4.1.0-b1
    • Component/s: Modules
    • Labels:
      None

      Description

      The cPanel module should strip "www." from the beginning of domains if found, before generating the username or making the API call to cPanel, and store it without the www. It should also format the domain to lowercase if it doesn't already.

      Some clients will submit www.domain.com instead of just domain.com when placing an order. The cPanel module will then construct the username from www.domain.com instead of domain.com, and include the www. in email templates.

      See http://www.blesta.com/forums/index.php?/topic/3419-www-issue-being-entered-on-order/

        Issue Links

          Activity

          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          What about the stripping the protocol?
          http://
          https://
          ftp://
          ...

          Show
          tyson Tyson Phillips (Inactive) added a comment - What about the stripping the protocol? http:// https:// ftp:// ...
          Hide
          admin Paul Phillips added a comment -

          If the domain includes the protocol, it shouldn't pass the regex check as it's not a valid hostname. www.domain.com is a valid hostname, as is domain.com, domain.co.uk, www.domain.co.uk, etc.. but cPanel does not need or want "www" to be supplied, just the domain.

          Show
          admin Paul Phillips added a comment - If the domain includes the protocol, it shouldn't pass the regex check as it's not a valid hostname. www.domain.com is a valid hostname, as is domain.com, domain.co.uk, www.domain.co.uk, etc.. but cPanel does not need or want "www" to be supplied, just the domain.

            People

            • Assignee:
              jonathan Jonathan Reissmueller
              Reporter:
              admin Paul Phillips
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/Jul/17

                Agile