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

chore: check image url hostname is a trusted image domain #1895

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

1emu
Copy link
Collaborator

@1emu 1emu commented Dec 19, 2024

image

@1emu 1emu requested a review from andyesp December 19, 2024 20:11
try {
const urlObject = new URL(url)
const hostname = urlObject.hostname
console.log('hostname', hostname)
Copy link
Member

Choose a reason for hiding this comment

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

console.log

@1emu 1emu force-pushed the fix/images-url-check-pt2 branch from e9d602f to 7ee170d Compare December 20, 2024 15:03
@1emu 1emu merged commit 920d733 into master Dec 20, 2024
2 checks passed
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.

2 participants