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

format_text strips images with src attributes it doesn't like

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      this is a problem for the leap2a export, which rewrites images to reference the attached file in the feed by id, eg:

      <img rel="leap2a:has_part" src="portfolio:storedfile3456" />

      these are getting stripped by format_text, I guess because the src doesn't end in an extension of an image. Is there a way to stop this?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mjollnir Penny Leach
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10