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

Allow whitelisting mediaTypes used in resources.GetRemote #10973

Merged
merged 1 commit into from
May 20, 2023

Conversation

bep
Copy link
Member

@bep bep commented May 20, 2023

Fixes #10286

@bep bep force-pushed the feat/sec-whiteliste-mediatype-10286 branch 4 times, most recently from b773fe8 to 3094777 Compare May 20, 2023 16:16
@bep bep force-pushed the feat/sec-whiteliste-mediatype-10286 branch from 3094777 to 66e4714 Compare May 20, 2023 16:18
@bep bep requested a review from jmooring May 20, 2023 17:25
@bep
Copy link
Member Author

bep commented May 20, 2023

@jmooring I'm confident that it works, just wanted a second eye -- as this issue has confused me enough in the past.

Copy link
Member

@jmooring jmooring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested protobuf example described in https://discourse.gohugo.io/t/43556, and made sure that "built-in" media types are not excluded when config doesn't include them.

@bep bep merged commit 2637b4e into gohugoio:master May 20, 2023
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow whitelisting mediaTypes used in resources.GetRemote
2 participants