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

ProposalC3VOCPublishingWebhook: add option to set thumbnail as well (and test naming) #1774

Merged
merged 3 commits into from
Sep 1, 2024

Conversation

Kunsi
Copy link
Contributor

@Kunsi Kunsi commented Sep 1, 2024

... and better test naming

@russss russss enabled auto-merge (rebase) September 1, 2024 12:26
@russss russss merged commit 2d909d2 into emfcamp:main Sep 1, 2024
2 checks passed
path = payload["voctoweb"]["thumb_path"]
if path.startswith("/static.media.ccc.de"):
path = "https://static.media.ccc.de/media" + path[len("/static.media.ccc.de"):]
if not path.startswith("https://"):
Copy link
Contributor

Choose a reason for hiding this comment

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

Are other CDNs likely to be used to host these thumbnails? (just wondering about the broader URI acceptance logic in this case)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This URL has changed in the past (some time ago it was cdn.c3voc.de i think). I don't think this will change in the future though, so we could have implemented stricter checking here, you're right.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, OK! For consistency and safety, I think it makes sense to check the complete domain in that case too.

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.

3 participants