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

Fix s() hex entity handling, and improve performance

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3.6, 2.4.3
    • 2.3.7, 2.4.3
    • Libraries

    Description

      The regex is currently "/&#(\d+|x[0-7a-fA-F]+);/i", "&#$1;"

      • we have /i, but a-fA-F
      • why do we have 0-7, not 0-9?

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Petr Skoda Petr Skoda
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Mar/13