X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinkFilter.php;h=6ad9b31ab9aa057f2f191adc4ead02fcffe9b0c8;hb=c8854dd1fef6f1614a8d96c16cdcbf7999d72194;hp=ffb36e0ba192902e6d64cef4746e93a2e3471866;hpb=f39abf6fc0b66f782607b45f3575d861069d6b31;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index ffb36e0ba1..6ad9b31ab9 100644 --- a/includes/LinkFilter.php +++ b/includes/LinkFilter.php @@ -54,7 +54,7 @@ class LinkFilter { return 0; } - $text = $content->getNativeData(); + $text = $content->getText(); $regex = self::makeRegex( $filterEntry, $protocol ); return preg_match( $regex, $text ); @@ -91,7 +91,7 @@ class LinkFilter { /** * Canonicalize a hostname for el_index - * @param string $hose + * @param string $host * @return string */ private static function indexifyHost( $host ) {