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

htmlpurifier incorrectly encodes domain names like http://teßt.de/

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.5, 3.3.2
    • 3.4
    • General
    • 3.4 Sprint 5

    Description

      added unittest to demostrate it

              $text = '<a href="http://teßt.de">teßt.de</a>';
              $expected = '<a href="http://xn--tet-6ka.de">teßt.de</a>';
              $this->assertSame($expected, purify_html($text));
      

      Failed asserting that two strings are identical.
      --- Expected
      +++ Actual
      @@ @@
      -<a href="http://xn--tet-6ka.de">teßt.de</a>
      +<a href="http://tesst.de">teßt.de</a>
      

      http://teßt.de/ is the same as http://xn--tet-6ka.de but NOT the same as http://tesst.de

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              cameron1729 cameron1729
              Andrew Lyons Andrew Lyons
              Adrian Greeve Adrian Greeve
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Nov/17