Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove motw before calling IAttachmentExecute::Save #1491

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

yao-msft
Copy link
Contributor

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

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
@denelon denelon linked an issue Sep 21, 2021 that may be closed by this pull request
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