mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SecureLinkFixer
synced 2024-11-28 17:30:04 +00:00
Update fetchList for changes to atom feed
The <link> tag now uses HTTPS. Yay! Change-Id: I0a43bf02db0cf9533641d18121f12d77a7821ae9
This commit is contained in:
parent
6ac715971e
commit
0367ff21af
|
@ -39,7 +39,7 @@ class FetchList extends Maintenance {
|
|||
// phpcs:ignore Generic.Files.LineLength
|
||||
$feedUrl = 'https://hg.mozilla.org/mozilla-central/atom-log/tip/security/manager/ssl/nsSTSPreloadList.inc';
|
||||
$feed = file_get_contents( $feedUrl );
|
||||
preg_match( '!"http://hg.mozilla.org/mozilla-central/rev/([a-f0-9]*?)"!', $feed, $matches );
|
||||
preg_match( '!"https://hg.mozilla.org/mozilla-central/rev/([a-f0-9]*?)"!', $feed, $matches );
|
||||
if ( !isset( $matches[1] ) ) {
|
||||
$this->fatalError( 'Unable to parse revision id for HSTS preload list' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue