CRM-8361 The url validation function used when adding websites information to contacts and organizations does not allow hyphens '-' in the domain name.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.0.4
    • Fix Version/s: None
    • Component/s: CiviCRM Profile
    • Labels:
      None

      Description

      The error "Please correct the following errors in the form fields below: Enter a valid web location beginning with 'http://' or 'https://'. EXAMPLE: http://www.mysite.org/" is displayed if you try to enter a URL for the website of a contact or organization that includes a hyphen, such as in http://www.atoz-sado.com

      If I remove the hyphen, the contact or organization is saved without a problem.

        Attachments

          Activity

          [CRM-8361] The url validation function used when adding websites information to contacts and organizations does not allow hyphens '-' in the domain name.
          Donald A. Lobo added a comment -


          This is a PHP bug in older versions of PHP. Please upgrade your PHP to a more recent version

          Carlos Miranda Levy added a comment -

          Thanks, I upgraded my Ubuntu server from 10.04 to 10.10 and PHP from 5.3.2 to 5.3.3 and now it works.

          Dave Jenkins added a comment -

          I've replicated this problem on 4.2.6 with a Website field in a profile, though I've found it to be intermittent - at least, I haven't pinned down the precise circumstances when it occurs.
          Any particular reason why this was marked as Won't Fix?

          Dave Jenkins added a comment -

          Replicated on 4.2.6, using a profile with a Website field in edit mode.
          Any particular reason why this was marked as Won't Fix?

          Dave Jenkins added a comment -

          Sorry for the multiple comments - no comments were appearing when I viewed the issue, so I didn't see the remarks re PHP versions. I believe that's the problem in this case (client's own server). I'm apparently not competent to operate a web GUI at this precise moment so will stop and go home!

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Carlos Miranda Levy

              Dates

              • Created:
                Updated:
                Resolved: