* (bug 1300) patch from Michael Keppler to make the regexp eat across newlines.

This commit is contained in:
Ævar Arnfjörð Bjarmason 2005-04-19 17:19:52 +00:00
parent a49698b0f7
commit 28b4179a36

View file

@ -1155,7 +1155,7 @@ class Parser
# [[Image:Foo.jpg|[http://example.com desc]]] <- having three ] in a row fucks up,
# the real problem is with the $e1 regex
# See bug 1300.
if (preg_match( "/^\](.*)/", $m[3], $n ) ) {
if (preg_match( "/^\](.*)/s", $m[3], $n ) ) {
$text .= ']'; # so that replaceExternalLinks($text) works later
$m[3] = $n[1];
}