Skip to content

Remove motw before calling IAttachmentExecute::Save - #1491

Merged
yao-msft merged 3 commits into
microsoft:masterfrom
yao-msft:IAttachmentSaveHonorTrustedZone
Sep 21, 2021
Merged

yao-msft merged 3 commits into
microsoft:masterfrom
yao-msft:IAttachmentSaveHonorTrustedZone

Conversation

@yao-msft

@yao-msft yao-msft commented Sep 21, 2021 •

Copy link
Copy Markdown
Contributor

This fixes the "winget downloaded installers do not honor url zone settings" issue brought up in #797

Change

IAttachmentExecute::Save() api does not clear existing Motw if the url is in trusted zone. This change puts the downloaded file in a clean state before calling the IAttachmentExecute::Save() method.

Validation

Manually set break points and inspect Motw values are as expected and url zone settings are honored.

Microsoft Reviewers: Open in CodeFlow

@yao-msft
yao-msft requested a review from a team as a code owner September 21, 2021 02:20
@yao-msft
yao-msft merged commit 59d869e into microsoft:master Sep 21, 2021
@yao-msft
yao-msft deleted the IAttachmentSaveHonorTrustedZone branch September 21, 2021 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Silent install of "winget install git.git" is not working

2 participants