Merge "Make assertFileContains not create files by default"
[lhc/web/wiklou.git] / includes / Linker.php
index 0ee6c92..c0959bf 100644 (file)
@@ -1221,6 +1221,7 @@ class Linker {
                return preg_replace_callback(
                        '/
                                \[\[
+                               \s*+ # ignore leading whitespace, the *+ quantifier disallows backtracking
                                :? # ignore optional leading colon
                                ([^\]|]+) # 1. link target; page names cannot include ] or |
                                (?:\|