CRM-15975 URL and email fields do not accept IDN input (eg umlauts, macrons)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.5.6
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      User and Admin Doc

      Description

      I don't know why people are using URLs containing umlauts, but they're doing it more and more. Plus modern browsers don't shown the decrypted URL in the address bar any more. Problem: CiviCRM doesn't accept umlauts in URLs or e-mail-addresses.

      Resolution 1: deactivate valdation
      Resolution 2: decrypt umlauts (vaihingen-ös.de => xn--vaihingen-s-0fb.de)

        Attachments

          Issue Links

            Activity

            [CRM-15975] URL and email fields do not accept IDN input (eg umlauts, macrons)
            John K. added a comment -

            This was touched on in CRM-16531 - so there are a couple of comments in there for anyone who wants to take on this issue.

            The main issue is the PHP validation function being used doesn't accept non-ascii characters as valid input, FILTER_VALIDATE_URL: http://php.net/manual/en/filter.filters.validate.php . I imagine this is therefore true for email addresses as well.

            Chris Burgess added a comment -

            There is a patch already accepted in CRM-16313 - if you're seeing this behaviour with that fix applied, please update the issue?

            Chris Burgess added a comment -

            People have been using IDN already a few years (since 2011), that's why we're seeing them using it

            https://www.icann.org/resources/pages/idn-2012-02-25-en

              People

              • Assignee:
                Unassigned
                Reporter:
                Fritz Mielert

                Dates

                • Created:
                  Updated: