Skip to content

Sharedialog preview be more resilient #8939

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

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Sharedialog preview be more resilient #8939

merged 1 commit into from
Aug 24, 2021

Conversation

TheOneRing
Copy link
Contributor

@TheOneRing TheOneRing commented Aug 24, 2021

The api currently does respond with non png icons, determine the image type based on the content.
Don't override the system icon if we got a null icon.

Fixes: #8938

@TheOneRing TheOneRing requested a review from a team August 24, 2021 10:54
@jnweiger
Copy link
Contributor

Would that also accept an SVG thumbnail with some facy embedded JavaScript exploit?

@TheOneRing
Copy link
Contributor Author

QPixmap only accepts images no svgs.

@TheOneRing TheOneRing changed the title Sharedialog preview be more resilliant Sharedialog preview be more resilient Aug 24, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@dragotin dragotin left a comment

Choose a reason for hiding this comment

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

Nice!

@TheOneRing TheOneRing merged commit 0457100 into master Aug 24, 2021
@delete-merged-branch delete-merged-branch bot deleted the work/preview branch August 24, 2021 16:58
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.

[QA] Sharing dialog (often) shows no thumbnails
3 participants