Moodle
  1. Moodle
  2. MDL-29585

Special characters in wiki section throw error

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.4, 2.1.1, 2.5.4, 2.6.1
    • Fix Version/s: BACKEND
    • Component/s: Wiki (2.x)
    • Labels:
    • Testing Instructions:
      Hide

      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 should not throw error

      Show
      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 should not throw error
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Rank:
      19098

      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

        Activity

        Hide
        Rajesh Taneja added a comment -

        was encountered while reviewing MDL-28725

        Show
        Rajesh Taneja added a comment - was encountered while reviewing MDL-28725
        Hide
        Eloy Lafuente (stronk7) added a comment - - edited

        Another example leading to problems (html wiki):

        <h1>Code &amp; Test</h1>
        <p>adad</p>
        <p>adad</p>
        <p> </p>
        <p>Does this work?</p>
        <h1>Another áéíóú test</h1>
        <p>adad</p>
        <p>adad</p>
        <p> </p>
        <p>Does this work?</p>
        <h1>Another http://apple.com test</h1>
        <p>adad</p>
        <p>adad</p>
        <p> </p>
        <p>Does this work?</p>
        

        under master, 21 and 20. The 1st (containing ampersands) and the 2nd sections are working ok.

        The 3rd is failing badly (table of contents borked and edit section leading to error)

        Ciao

        Show
        Eloy Lafuente (stronk7) added a comment - - edited Another example leading to problems (html wiki): <h1>Code &amp; Test</h1> <p>adad</p> <p>adad</p> <p> </p> <p>Does this work?</p> <h1>Another áéíóú test</h1> <p>adad</p> <p>adad</p> <p> </p> <p>Does this work?</p> <h1>Another http: //apple.com test</h1> <p>adad</p> <p>adad</p> <p> </p> <p>Does this work?</p> under master, 21 and 20. The 1st (containing ampersands) and the 2nd sections are working ok. The 3rd is failing badly (table of contents borked and edit section leading to error) Ciao
        Hide
        Michael de Raadt added a comment -

        Thanks for reporting this issue.

        We have detected that this issue has been inactive for over a year. It was reported as affecting versions that are no longer supported.

        If you believe that this issue is still relevant to current versions (2.5 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

        Michael d.

        TW9vZGxlDQo=

        Show
        Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year. It was reported as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.5 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d. TW9vZGxlDQo=
        Hide
        Michael de Raadt added a comment -

        I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported.

        This is being done as part of a bulk annual clean-up of issues.

        If you still believe this is an issue in supported versions, please create a new issue.

        Show
        Michael de Raadt added a comment - I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported. This is being done as part of a bulk annual clean-up of issues. If you still believe this is an issue in supported versions, please create a new issue.
        Hide
        Marina Glancy added a comment -

        reopening as this is still an issue

        Show
        Marina Glancy added a comment - reopening as this is still an issue

          People

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

            Dates

            • Created:
              Updated: