Skip to content
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

fix: URL display in chat push notification #14378

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

JoVictorNunes
Copy link
Collaborator

@JoVictorNunes JoVictorNunes commented Feb 16, 2022

What does this PR do?

Uses dangerouslySetInnerHTML for injecting HTML so that links will be evaluated properly.

Captura de tela de 2022-02-16 11-02-16

Closes Issue(s)

Closes #14374

More

The sanitizing part is done here: https://github.com/JoVictorNunes/bigbluebutton/blob/6fe2b69dc784b018dddb25f6e2667131542b6589/bigbluebutton-html5/imports/api/group-chat-msg/server/methods/sendGroupChatMsg.js#L15-L29

So, the message content is already sanitized on the browser, which prevents security issues like XSS attack.

@sonarcloud
Copy link

sonarcloud bot commented Feb 16, 2022

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@antobinary antobinary added this to the Release 2.4 milestone Feb 16, 2022
@antobinary antobinary merged commit 7ec888b into bigbluebutton:v2.4.x-release Feb 16, 2022
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.

None yet

2 participants