* (bug 1300) patch from Michael Keppler to make the regexp eat across newlines.
This commit is contained in:
parent
a49698b0f7
commit
28b4179a36
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue