Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.8, 1.9, 1.9.11
-
Fix Version/s: None
-
Component/s: Wiki (1.x)
-
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!
I can confirm this. We had many images which would not display (they were missing the src attribute when the wiki was viewed), and renaming them to start with a lowercase letter fixed the problem. The nonworking filenames matched the above pattern.