aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/public
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2018-01-11 11:02:45 +0100
committerThomas Citharel <tcit@tcit.fr>2018-01-11 11:02:45 +0100
commitfeb4dc383e45a7e2bd7e4eb31f98e295510b7326 (patch)
tree47d0204748c61f4d484a963c6f40e1f0411f4404 /core/js/public
parent2a24f45b5fc8786da607f2065f73fa7133b76d04 (diff)
downloadnextcloud-server-feb4dc383e45a7e2bd7e4eb31f98e295510b7326.tar.gz
nextcloud-server-feb4dc383e45a7e2bd7e4eb31f98e295510b7326.zip
Adds rel="noopener noreferrer" to _blank links inside comments
For more details, check out https://mathiasbynens.github.io/rel-noopener/ for instance Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'core/js/public')
-rw-r--r--core/js/public/comments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/public/comments.js b/core/js/public/comments.js
index 955e88c8609..ac0bf8e0ab7 100644
--- a/core/js/public/comments.js
+++ b/core/js/public/comments.js
@@ -43,7 +43,7 @@
}
var linkText = url.replace(self.protocolRegex, '');
- return '<a class="external" target="_blank" href="' + url + '">' + linkText + '</a>';
+ return '<a class="external" target="_blank" rel="noopener noreferrer" href="' + url + '">' + linkText + '</a>';
});
},