Merge "Turn MessageBlobStore into a singleton instead of static functions"
[lhc/web/wiklou.git] / includes / parser / Parser.php
index c5c472a..61fffc5 100644 (file)
@@ -5527,7 +5527,7 @@ class Parser {
                                                                $paramName = 'no-link';
                                                                $value = true;
                                                                $validated = true;
-                                                       } elseif ( preg_match( "/^(?i)$prots/", $value ) ) {
+                                                       } elseif ( preg_match( "/^((?i)$prots)/", $value ) ) {
                                                                if ( preg_match( "/^((?i)$prots)$chars+$/u", $value, $m ) ) {
                                                                        $paramName = 'link-url';
                                                                        $this->mOutput->addExternalLink( $value );