Index: trunk/extensions/Video/VideoClass.php |
— | — | @@ -526,7 +526,8 @@ |
527 | 527 | * it out |
528 | 528 | */ |
529 | 529 | public static function getProviderByURL( $url ) { |
530 | | - $host = parse_url( $url, PHP_URL_HOST ); |
| 530 | + $host = wfParseUrl( $url ); |
| 531 | + $host = $host['host']; |
531 | 532 | |
532 | 533 | self::getDomainsForProviders(); |
533 | 534 | foreach ( self::$providerDomains as $domain => $provider ) { |