Skip to content

Conversation

@DerpgonCz
Copy link
Contributor

Summary
When the image URL is a data URL, render the image as-is with src="dataUrl". No need to fetch anything.

Also prevents a race condition while loading images.

Related for stable23: #2153

Resolves: #1827

Signed-off-by: Michal Junek <michal@junek.pw>
Signed-off-by: Michal Junek <michal@junek.pw>
@DerpgonCz DerpgonCz force-pushed the fix/master/image_data_urls branch from 4c27851 to 7b420e7 Compare February 7, 2022 13:49
@juliusknorr juliusknorr added the bug Something isn't working label Feb 23, 2022
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

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

Same as the PR for stable23. Looks good to me.

@max-nextcloud
Copy link
Collaborator

/rebase

@max-nextcloud
Copy link
Collaborator

/compile amend /

@max-nextcloud max-nextcloud merged commit 12db90b into nextcloud:master Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"data:" URLs handled wrong for images

3 participants