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

Wiki will not display image if filename contains uppercase characters in certain positions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.8, 1.9, 1.9.11
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Windows, Linux (Ubuntu)
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      If an image is added to a wiki page, either using the image dialog in the HTML editor, or by adding an <img> element to the HTML code, then that image will not display if the image filename matches this pattern:

      ^[A-Z][^A-Z][A-Z][^A-Z].*

      In other words, any filename that starts with one or more uppcase letters, and also contains another group of one or more uppercase letters anywhere except at the end, will fail to display.

      So this is OK:
      ABCd_efg_hIJK.jpg

      but this fails:
      ABCd_eFG_hIJK.jpg

      What happens is that the <img> element is output, but the src attribute is omitted.

      Bizzare!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                11 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: