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

& is systematically replaced by & a m p ; when we use the pencil for document name in topic

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.4, 2.4.1
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide
      • Open Course & Turn editing on
      • Use the 'Update title' tool to update the title to the following:
      Text you put in What you expect to see What you get when you click the edit button Notes
      Horse & Cart Horse & Cart Horse & Cart & is converted to & by format_string and then back again by html_entity_decode
      Horse & <b>Cart</b> Horse & Cart Horse & Cart <b> is stripped out by format_string but & is not
      Horse & Cart Horse & Cart Horse & Cart nbsp is not stripped out anywhere
        • Confirm that they're all correct

      You may also wish to try a few other strings; and to try putting some strings in the modedit form too.

      Show
      Open Course & Turn editing on Use the 'Update title' tool to update the title to the following: Text you put in What you expect to see What you get when you click the edit button Notes Horse & Cart Horse & Cart Horse & Cart & is converted to & by format_string and then back again by html_entity_decode Horse & <b>Cart</b> Horse & Cart Horse & Cart <b> is stripped out by format_string but & is not Horse & Cart Horse & Cart Horse & Cart nbsp is not stripped out anywhere Confirm that they're all correct You may also wish to try a few other strings; and to try putting some strings in the modedit form too.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-36918-master

      Description

      in a topic, i want to change the name of document or activity
      when i write "&" it's automatically changed by "& a m p ;" after validation...

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13