Last modified: 2010-05-15 15:33:50 UTC
See linked page at
The following displays an image with a broken caption, and a spurious closing
[[Image:Wiki.png|left|thumb|From [http://wikipedia.org Wikipedia]]]
Any space between the first and other two closing brackets causes the image not
to be displayed at all.
[[Image:Wiki.png|left|thumb|From [http://wikipedia.org Wikipedia], the free
This is a problem for articles like [[en:History of Arda]], which need to
provide credit and link-backs for the images they use. There is currently no way
to display external links in image captions unless bare links are used, or the
DIVs are manually written in. (The following works, for instance.)
Actually it was only external links that closed immitiately before the image
link itself closed, like:
* [[Image:Foo.png|thumb|[http://example.com]]] as opposed to
* [[Image:Foo.png|thumb|[http://example.com].]] which worked.
I've fixed the issue in HEAD and REL1_4, thanks for the report.
The bugfix is slightly buggy. The regexp in the parser which checks for the
existence of "]]]" (tripel closing bracket) needs an additional regexp modifier
"s" to also consume over newlines with the ".*" regexp part.
This will also fix bug #1905.
Created attachment 428 [details]
patch for CVS
*** Bug 1905 has been marked as a duplicate of this bug. ***
Applied it to REL1_4 and HEAD, thanks.
Adding email@example.com as a CC (it was removed)