X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinkFilter.php;h=c2f6b1ebee81174016d287c89be4ede82f3c33cc;hb=9b9daadc46b3456dd9b9120e4aeb98e2ae38f26a;hp=b19f6c4de2dce9952a21c54c6d20c3299efdc9b4;hpb=e34865144f3f21bb8b0ad4ba76d3d10490a73462;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index b19f6c4de2..c2f6b1ebee 100644 --- a/includes/LinkFilter.php +++ b/includes/LinkFilter.php @@ -23,7 +23,7 @@ /** * Some functions to help implement an external link filter for spam control. - * + * * @todo implement the filter. Currently these are just some functions to help * maintenance/cleanupSpam.php remove links to a single specified domain. The * next thing is to implement functions for checking a given page against a big @@ -119,17 +119,17 @@ class LinkFilter { // Reverse the labels in the hostname, convert to lower case // For emails reverse domainpart only if ( $prot == 'mailto:' && strpos($host, '@') ) { - // complete email adress + // complete email adress $mailparts = explode( '@', $host ); $domainpart = strtolower( implode( '.', array_reverse( explode( '.', $mailparts[1] ) ) ) ); $host = $domainpart . '@' . $mailparts[0]; $like = array( "$prot$host", $db->anyString() ); } elseif ( $prot == 'mailto:' ) { // domainpart of email adress only. do not add '.' - $host = strtolower( implode( '.', array_reverse( explode( '.', $host ) ) ) ); - $like = array( "$prot$host", $db->anyString() ); + $host = strtolower( implode( '.', array_reverse( explode( '.', $host ) ) ) ); + $like = array( "$prot$host", $db->anyString() ); } else { - $host = strtolower( implode( '.', array_reverse( explode( '.', $host ) ) ) ); + $host = strtolower( implode( '.', array_reverse( explode( '.', $host ) ) ) ); if ( substr( $host, -1, 1 ) !== '.' ) { $host .= '.'; }