Update fetchList for changes to atom feed

The <link> tag now uses HTTPS. Yay!

Change-Id: I0a43bf02db0cf9533641d18121f12d77a7821ae9
This commit is contained in:
Kunal Mehta 2018-08-01 22:00:07 -07:00
parent 6ac715971e
commit 0367ff21af

View file

@ -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' );
}