Skip to content

[12.x] Narrow attachment url scheme#60035

Merged
taylorotwell merged 1 commit into
12.xfrom
narrow-attachment-url-scheme
May 7, 2026
Merged

[12.x] Narrow attachment url scheme#60035
taylorotwell merged 1 commit into
12.xfrom
narrow-attachment-url-scheme

Conversation

@benbjurstrom
Copy link
Copy Markdown
Member

Restricts Attachment::fromUrl() to http and https URLs. This keeps URL attachments aligned with their intended remote URL use case while rejecting unsupported schemes.

* Create a mail attachment from a URL.
*
* @param string $url
* @return static
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You may add @throws here:

Suggested change
* @return static
* @throws \InvalidArgumentException

@shaedrich
Copy link
Copy Markdown
Contributor

shaedrich commented May 7, 2026

You may want to add "Backport" to your PR title, so the intention is immediately clear

@taylorotwell taylorotwell merged commit 812bcd1 into 12.x May 7, 2026
73 checks passed
@taylorotwell taylorotwell deleted the narrow-attachment-url-scheme branch May 7, 2026 18:38
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