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

Mustache pix helper double entity encoding

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Install Català (ca) language pack at a Moodle site (/admin/tool/langimport/index.php) and, once installed, select it in the languages drop down to make it the current lang.
      • Go to a course settings page
      • Put the mouse pointer over the "Categoria del curs" help icon
      • Let it hover the title

      What you get is:

      Ajuda: "Categoria del curso"

      What you should get:

      Ajuda: "Categoria del curso"

       

      Show
      Install Català (ca) language pack at a Moodle site (/admin/tool/langimport/index.php) and, once installed, select it in the languages drop down to make it the current lang. Go to a course settings page Put the mouse pointer over the "Categoria del curs" help icon Let it hover the title What you get is: Ajuda: "Categoria del curso" What you should get: Ajuda: "Categoria del curso"  
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull 3.6 Branch:
    • Pull Master Branch:
      MDL-62008-master

      Description

      Text at pix Mustache helper is being encoded two times resulting in HTML entities being re-encoded and displayed incorrectly.

      This is breaking the title attribute of help icons in forms.

      I think the easiest way to reproduce is:

      • Install Català (ca) language pack at a Moodle site
      • Go to a course settings page
      • Go to the "Categoria del curs" help icon (or any other)
      • Let it hover the title

      What you get is:

      Ajuda: "Categoria del curs"

      What you should get:

      Ajuda "Categoria del curs"

       

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Mar/19

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m