From: Wil Mahan Date: Wed, 6 Oct 2004 19:22:42 +0000 (+0000) Subject: Trivial fix from Rowan Collins to better handle X-Git-Tag: 1.5.0alpha1~1646 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=5d887f3e68b9e7dcfc0ae7e3a9b0deeb73ee8304;p=lhc%2Fweb%2Fwiklou.git Trivial fix from Rowan Collins to better handle malformed images with captions containing links. --- diff --git a/includes/Parser.php b/includes/Parser.php index 53aa59aa2d..5977b7ba36 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1215,6 +1215,8 @@ class Parser } if ( !$found ) { # we couldn't find the end of this imageLink, so output it raw + #but don't ignore what might be perfectly normal links in the text we've examined + $text = $this->replaceInternalLinks($text); $s .= $prefix . '[[' . $link . '|' . $text; # note: no $trail, because without an end, there *is* no trail continue;