From 5d887f3e68b9e7dcfc0ae7e3a9b0deeb73ee8304 Mon Sep 17 00:00:00 2001 From: Wil Mahan Date: Wed, 6 Oct 2004 19:22:42 +0000 Subject: [PATCH] Trivial fix from Rowan Collins to better handle malformed images with captions containing links. --- includes/Parser.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1