8000
Skip to content

Fix generated Netlify image config URLs - #17752

Merged
ematipico merged 1 commit into
mainfrom
security/netlify-image-regex-anchor
Aug 20, 2026
Merged

Fix generated Netlify image config URLs#17752
ematipico merged 1 commit into
mainfrom
security/netlify-image-regex-anchor

Conversation

@matthewp
Copy link
Copy Markdown
Contributor

Changes

  • For config.domains we should be using ^ so that the URL matches at the front of the URL.
  • This prevents query params from matching.

Testing

  • Tests explain what this fixes best.

Docs

N/A, bug fix

@matthewp
matthewp marked this pull request as ready for review August 19, 2026 20:02
@changeset-bot
changeset-bot Bot commented Aug 19, 2026
Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d0551fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@astrojs/netlify Patch
@test/netlify-session Patch
@test/netlify-hosted-astro-project Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the pkg: integration Related to any renderer integration (scope) label Aug 19, 2026
@ematipico
ematipico merged commit e362d4c into main Aug 20, 2026
24 checks passed
@ematipico
ematipico deleted the security/netlify-image-regex-anchor branch August 20, 2026 11:42
@astrobot-houston astrobot-houston mentioned this pull request Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0