X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinkFilter.php;h=e4a5f962d16fedfaff8ffea2327785da8eb94055;hb=4f3d131492de5491d4be6d8d67d786b0703a8c49;hp=6ad9b31ab9aa057f2f191adc4ead02fcffe9b0c8;hpb=0c7c17716b64efe4f3c7f7ba2cf6ad7a7fc59d25;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index 6ad9b31ab9..e4a5f962d1 100644 --- a/includes/LinkFilter.php +++ b/includes/LinkFilter.php @@ -292,7 +292,7 @@ class LinkFilter { // The constant prefix is smaller than el_index_60, so we use a LIKE // for a prefix search. return [ - "{$p}_index_60" . $db->buildLike( [ $index, $db->anyString() ] ), + "{$p}_index_60" . $db->buildLike( $index, $db->anyString() ), "{$p}_index" . $db->buildLike( $like ), ]; } @@ -311,6 +311,7 @@ class LinkFilter { */ public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) { $db = wfGetDB( DB_REPLICA ); + $like = []; $target = $protocol . $filterEntry; $bits = wfParseUrl( $target );