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

Custom menu should not be calling format_text on $CFG->custommenuitems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Navigation
    • Labels:
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      Presently custom_menu::convert_text_to_menu is calling format_text on $CFG->custommenuitems to support multi-lang strings.
      Unfortunately this is causing filtering to occur of the strings and with the autolink filter (or what ever that is called) full URL's are being filtered into html links and stuff is breaking.
      Setting the filter option to false is certainly one solution but perhaps a better solution is to only filter the name of the item rather than the whole CFG variable.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: