From c5e51a435098a211910d02e801523c52df1214c4 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Thu, 10 Dec 2020 14:13:46 +0000 Subject: installer: support https in media URL (mga#27776) --- perl-install/install/NEWS | 2 ++ perl-install/install/media.pm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index a30649421..1af0987b2 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- support https in media URL (mga#27776) + Version 18.37 - 5 December 2020 - recognize more rtw88_* diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm index 4b9360045..7d00f8c9c 100644 --- a/perl-install/install/media.pm +++ b/perl-install/install/media.pm @@ -630,8 +630,8 @@ sub _get_media_url { $uri .= "/$arch" if -d "$uri/$arch"; } } else { - $uri = $o->{stage2_phys_medium}{url} =~ m!^(http|ftp)://! && $o->{stage2_phys_medium}{url} || - $phys_medium->{method} =~ m!^(ftp|http)://! && $phys_medium->{method} || '/tmp/image'; + $uri = $o->{stage2_phys_medium}{url} =~ m!^(https?|ftp)://! && $o->{stage2_phys_medium}{url} || + $phys_medium->{method} =~ m!^(ftp|https?)://! && $phys_medium->{method} || '/tmp/image'; } $uri; } -- cgit v1.2.1