mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-15 03:13:58 +00:00
Merge "Support protocol relative and https URLs"
This commit is contained in:
commit
e5cb8cf147
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue