mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SecureLinkFixer
synced 2024-11-24 07:33:35 +00:00
Fix weird spacing
I'm not sure why I did this Change-Id: I86302d8c1e6f619f9493c1779714cb905a0b526b
This commit is contained in:
parent
f0ed5222ff
commit
6ac715971e
|
@ -38,14 +38,14 @@ class Hooks {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( $parsed[ 'scheme' ] !== 'http' && $parsed[ 'scheme' ] !== '' ) {
|
||||
if ( $parsed['scheme'] !== 'http' && $parsed['scheme'] !== '' ) {
|
||||
// We only want http:// and proto-rel
|
||||
return;
|
||||
}
|
||||
|
||||
if ( HSTSPreloadLookup::getInstance()->isPreloaded( $parsed[ 'host' ] ) ) {
|
||||
$parsed[ 'scheme' ] = 'https';
|
||||
$parsed[ 'delimiter' ] = '://';
|
||||
if ( HSTSPreloadLookup::getInstance()->isPreloaded( $parsed['host'] ) ) {
|
||||
$parsed['scheme'] = 'https';
|
||||
$parsed['delimiter'] = '://';
|
||||
$url = wfAssembleUrl( $parsed );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue