Skip to content

Commit e4dce71

Browse files
committed
Fix claiming "the internet" when a SAS token is used. Resolves microsoft#51854 (comment)
1 parent c96919e commit e4dce71

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/azure-pipelines/windows/utility-prefix.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ Function Get-ContentSourceDescription {
8383
return $null
8484
}
8585

86-
if ($uri.Host -ieq 'vcpkgimageminting.blob.core.windows.net') {
87-
return 'vcpkgimageminting using SAS token'
86+
if ($Url.Host -ieq 'vcpkgimageminting.blob.core.windows.net') {
87+
if ($Url.Query -match '(^\?|&)sig=') {
88+
return 'vcpkgimageminting using SAS token'
89+
}
90+
91+
return 'vcpkgimageminting'
8892
}
8993

9094
return 'the internet'

0 commit comments

Comments
 (0)