Merge "Support protocol relative and https URLs"

This commit is contained in:
jenkins-bot 2015-06-17 00:35:09 +00:00 committed by Gerrit Code Review
commit e5cb8cf147

View file

@ -265,7 +265,7 @@ abstract class BaseBlacklist {
$matches = array();
if ( preg_match( '/^DB: ([\w-]*) (.*)$/', $fileName, $matches ) ) {
$text = $this->getArticleText( $matches[1], $matches[2] );
} elseif ( preg_match( '/^http:\/\//', $fileName ) ) {
} elseif ( preg_match( '/^(https?:)?\/\//', $fileName ) ) {
$text = $this->getHttpText( $fileName );
} else {
$text = file_get_contents( $fileName );