From 28b4179a3623cc93453fb69ccbb476f02ad2e34f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 19 Apr 2005 17:19:52 +0000 Subject: [PATCH] * (bug 1300) patch from Michael Keppler to make the regexp eat across newlines. --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index f35a47ce9b..456e3af09c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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]; } -- 2.20.1