Merge "Add MessagesBi.php"
[lhc/web/wiklou.git] / includes / LinkFilter.php
index 17b4d56..3b03f87 100644 (file)
@@ -65,7 +65,7 @@ class LinkFilter {
         * @return string Regex pattern, for preg_match()
         */
        private static function makeRegex( $filterEntry, $protocol ) {
-               $regex = '!' . preg_quote( $protocol );
+               $regex = '!' . preg_quote( $protocol, '!' );
                if ( substr( $filterEntry, 0, 2 ) == '*.' ) {
                        $regex .= '(?:[A-Za-z0-9.-]+\.|)';
                        $filterEntry = substr( $filterEntry, 2 );