It appears that the convert_urls_into_links() function is converting URLs that are inside image tags. For instance, it converts this:
<img src="http://moodle.org/logo/logo-240x60.gif" />
into this:
<img src="<a href="http://moodle.org/logo/logo-240x60.gif" target="_blank">http://moodle.org/logo/logo-240x60.gif</a>" />
I can confirm that it is the convert_urls_into_links() function that's causing this by commenting out line ~2246 of lib/weblib.php that reads:
convert_urls_into_links($text);
With that line commented out, the images display as expected with the correct HTML.
P.S. I'm assuming this has to do with the changes made in MDL-20826, but I wasn't sure whether or not I should create a new issue since that one is "Resolved."
- has been marked as being related by
-
MDL-21296 convert_urls_into_links() causing slowdown/timeouts
-
- Closed
-
- is duplicated by
-
MDL-21184 Regression: images on course description broken when displyed
-
- Closed
-
- will be (partly) resolved by
-
MDL-21183 convert_urls_into_links is converting urls to links inside image tags if tags are escaped
-
- Closed
-