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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.5, 3.3.2
    • Fix Version/s: 3.4
    • Component/s: General
    • Labels:
    • Sprint:
      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

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              cameron1729
              Integrator:
              Andrew Nicols
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17