Moodle

Nested ignore tags causing problems in filters...

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.4
  • Fix Version/s: 1.9.5
  • Component/s: Filters
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

While it's not usual, it's possible to have some nested "ignoretags" in filters, so something like:

<a href="url">whatever<span class="nolink">text</span></a> (with nested <a> and "nolink" ignoretags)

is transformed to:

<p><a href="url">whatever<#1-%-0#></a></p

This is caused by filterlib, trying to rebuild ignoretags in the SAME order they were found. By simply reversing the array of ignoretags, rebuild order is correct and we get the original string ok.

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Attached one example of the problem in moodle.org forums

Show
Eloy Lafuente (stronk7) added a comment - Attached one example of the problem in moodle.org forums
Hide
Eloy Lafuente (stronk7) added a comment -

Resolving as fixed in 18_STABLE, 19_STABLE and HEAD. Ciao

Show
Eloy Lafuente (stronk7) added a comment - Resolving as fixed in 18_STABLE, 19_STABLE and HEAD. Ciao

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: