diff --git a/src/components/structures/VectorEmbeddedPage.js b/src/components/structures/VectorEmbeddedPage.js index 1c3a1067..fc3b41a5 100644 --- a/src/components/structures/VectorEmbeddedPage.js +++ b/src/components/structures/VectorEmbeddedPage.js @@ -29,7 +29,7 @@ export default class VectorEmbeddedPage extends EmbeddedPage { translate(s) { s = sanitizeHtml(_t(s)); // ugly fix for https://github.com/vector-im/riot-web/issues/4243 - s = s.replace(/\[matrix\]/, '<a href="https://matrix.org" target="_blank" rel="noopener"><img width="79" height="34" alt="[matrix]" style="padding-left: 1px;vertical-align: middle" src="welcome/images/matrix.svg"/></a>'); + s = s.replace(/\[matrix\]/, '<a href="https://matrix.org" target="_blank" rel="noreferrer noopener"><img width="79" height="34" alt="[matrix]" style="padding-left: 1px;vertical-align: middle" src="welcome/images/matrix.svg"/></a>'); return s; } } diff --git a/src/components/views/auth/VectorAuthFooter.js b/src/components/views/auth/VectorAuthFooter.js index 45e0c2b2..de38b00a 100644 --- a/src/components/views/auth/VectorAuthFooter.js +++ b/src/components/views/auth/VectorAuthFooter.js @@ -34,7 +34,7 @@ const VectorAuthFooter = () => { const authFooterLinks = []; for (const linkEntry of links) { authFooterLinks.push( - <a href={linkEntry.url} key={linkEntry.text} target="_blank" rel="noopener"> + <a href={linkEntry.url} key={linkEntry.text} target="_blank" rel="noreferrer noopener"> {linkEntry.text} </a>, ); @@ -43,7 +43,7 @@ const VectorAuthFooter = () => { return ( <div className="mx_AuthFooter"> {authFooterLinks} - <a href="https://matrix.org" target="_blank" rel="noopener">{ _t('powered by Matrix') }</a> + <a href="https://matrix.org" target="_blank" rel="noreferrer noopener">{ _t('powered by Matrix') }</a> </div> ); };