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

[NEW] Add ref="noopener noreferrer" to Markdown links #7327

Merged
merged 1 commit into from
Jun 30, 2017

Conversation

jangmarker
Copy link
Contributor

Links created by autolinker already have these attributes. However, links created via Markdown title or <link|title> didn't have these.

@RocketChat/core

Links created using Markdown syntax leak channel names because they do not have ref="noreferrer". Links created by autolinker have noreferrer and noopener. Add these two attributes to links created via Markdown.

Links created by autolinker already have these attributes. However, links created via Markdown [title](link) or <link|title> didn't have these.
@karlprieb
Copy link
Contributor

Thank you for your contribution 👍

@jangmarker
Copy link
Contributor Author

Thanks for approving! :-) I cannot merge myself, will this be merged by someone according to some process?

@karlprieb
Copy link
Contributor

Yes, probably @rodrigok or @engelgabriel will merge this PR :)

@rodrigok rodrigok added this to the 0.58.0 milestone Jun 30, 2017
@rodrigok rodrigok merged commit 747061f into RocketChat:develop Jun 30, 2017
@pitamar
Copy link
Contributor

pitamar commented Aug 3, 2017

Hi,
I think it's supposed to be rel="noopener noreferrer"
https://www.w3schools.com/TAGs/att_a_rel.asp

Am I wrong?
Thanks
Itamar

jangmarker added a commit to jangmarker/Rocket.Chat that referenced this pull request Aug 3, 2017
Follow-up to RocketChat#7327 fixing the usage of "ref" to "rel" as pointed out
by @pitamar.
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.

4 participants