Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-58413

URLs do not support internationalized domain names (IDN)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.3, 3.3, 3.4
    • Fix Version/s: None
    • Component/s: Language, Resource
    • Labels:
    • Testing Instructions:
      Hide
      1. Add a URL ressource to a Moodle course.
      2. Insert a URL like http://www.informationssäkerhet.se/ or http://москва.рф/services/ and click save.
      3. (you've got PHP with intl supported) Make sure no warning is shown, saving is done and then, the URL is displayed and can be called.
      4. (you've got PHP without intl supported) "Entered URL is invalid" error is shown and you are not able to save.
      Show
      Add a URL ressource to a Moodle course. Insert a URL like http://www.informationss äkerhet.se/ or http://москва.рф/services/ and click save. (you've got PHP with intl supported) Make sure no warning is shown, saving is done and then, the URL is displayed and can be called. (you've got PHP without intl supported) "Entered URL is invalid" error is shown and you are not able to save.
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-58413-URL-any-unicode-for-IDN-idnaconv

      Description

      URLs in Resource currently do not support internationalized domain names (IDN) (any URL that contains characters from non-Latin alphabets, such as Arabic, Chinese, Cyrillic, Tamil, Hebrew or the Latin alphabet-based characters with diacritics or ligatures, such as French or Swedish. They're stored as ASCII strings using Punycode transcription.

      regexp check is done here: mod/url/locallib.php:42

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: