Skip to content

Gracefully handle ill-formed remote images in rich text#1859

Merged
flavorjones merged 1 commit intomainfrom
flavorjones/fix-broken-remote-images
Dec 4, 2025
Merged

Gracefully handle ill-formed remote images in rich text#1859
flavorjones merged 1 commit intomainfrom
flavorjones/fix-broken-remote-images

Conversation

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Dec 3, 2025

A better fix has been proposed upstream at rails/rails#56283 but this should be fine in the meantime.

ref: https://app.fizzy.do/5986089/cards/3188

@flavorjones
Copy link
Member Author

Hmm. Actually I think this is a bug in rails that's allowing remote images to be created with local URIs in the first place. Will work that angle also.

@flavorjones
Copy link
Member Author

Proposed upstream fix: rails/rails#56283

Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

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

TIL about skip_pipeline! 👏

A better fix has been proposed upstream at
rails/rails#56283 but this should be fine in
the meantime.

ref: https://app.fizzy.do/5986089/cards/3188
@flavorjones flavorjones force-pushed the flavorjones/fix-broken-remote-images branch from 7514598 to 89940d3 Compare December 4, 2025 14:25
@flavorjones
Copy link
Member Author

Looks good in staging.

@flavorjones flavorjones merged commit 916be75 into main Dec 4, 2025
12 checks passed
@flavorjones flavorjones deleted the flavorjones/fix-broken-remote-images branch December 4, 2025 14:39
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