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

Special characters in wiki section throw error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1.1, 2.5.4, 2.6.1
    • Fix Version/s: 2.7.4, 2.8.2
    • Component/s: Wiki (2.x)
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-29585-master
    • Sprint:
      BACKEND Sprint 18

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Jan/15