Fix serious bug in r90849 that didn't show up in the tests until I restructured the...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 20 Aug 2011 10:25:38 +0000 (10:25 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 20 Aug 2011 10:25:38 +0000 (10:25 +0000)
includes/Skin.php

index e1b24fa..52e6ff1 100644 (file)
@@ -1156,7 +1156,7 @@ abstract class Skin extends ContextSource {
                                                
                                                // Parser::getExternalLinkAttribs won't work here because of the Namespace things
                                                global $wgNoFollowLinks, $wgNoFollowDomainExceptions;
-                                               if ( $wgNoFollowLinks && !wfMatchesDomainList( $url, $wgNoFollowDomainExceptions ) ) {
+                                               if ( $wgNoFollowLinks && !wfMatchesDomainList( $href, $wgNoFollowDomainExceptions ) ) {
                                                        $extraAttribs['rel'] = 'nofollow';
                                                }