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

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

XMLWordPrintable

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

      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

            marina Marina Glancy
            marina Marina Glancy
            cameron1729 cameron1729
            Andrew Lyons Andrew Lyons
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.