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

Special characters in wiki section throw error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.4, 2.8.2
    • 2.0.4, 2.1.1, 2.5.4, 2.6.1
    • Wiki (2.x)
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-29585-master
    • Hide
      Test 1
      1. Create a wiki
      2. Add a page of each type (html, creole, nwiki)
        • Each page must contain minimum 3 headings
        • There should be heading containing a URL, one containing an ampersand (&), one containing whatever you like.

          Example for Creole:
          = Code & Test =
          Using HTML entities...
           
          = Another áéíóúç€ test =
          Using non-ascii characters
           
          = Another http://moodle.org test =
          Using a URL http://moodle.org test
          

      3. Visit each page and make sure...
        • ... you can use on the [Edit] link (both in TOC and next to the header)
        • ... the edit page shows the content of the right section
        • ... the URL in the header in the TOC is not a link
        • ... the URL in the header in the content is a link, but only for HTML format
      Test 2
      1. Run the unit tests in mod/wiki/tests/wikiparser_test.php
      Show
      Test 1 Create a wiki Add a page of each type (html, creole, nwiki) Each page must contain minimum 3 headings There should be heading containing a URL, one containing an ampersand (&), one containing whatever you like. Example for Creole: = Code & Test = Using HTML entities...   = Another áéíóúç€ test = Using non-ascii characters   = Another http://moodle.org test = Using a URL http://moodle.org test Visit each page and make sure ... ... you can use on the [Edit] link (both in TOC and next to the header) ... the edit page shows the content of the right section ... the URL in the header in the TOC is not a link ... the URL in the header in the content is a link, but only for HTML format Test 2 Run the unit tests in mod/wiki/tests/wikiparser_test.php
    • BACKEND Sprint 18

      Adding html special characters like "& < >" in wiki section throw error.
      Steps to reproduce.
      1. Create a wiki - Creole format
      2. Add header "= Level 1 & 2 Header =" and Save
      3. Click on edit hyperlink(Section edit link, next to "Level 1 & 2 Header")
      4. It will throw error

            fred Frédéric Massart
            rajeshtaneja Rajesh Taneja
            Mark Nelson Mark Nelson
            Sam Hemelryk Sam Hemelryk
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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