fix: reverse tabnabbing exploit in post images

This commit is contained in:
Julian Lam
2020-06-19 13:40:25 -04:00
parent af790e3f5e
commit 040e6a9a4c

View File

@@ -25,7 +25,7 @@ define('forum/topic/images', [], function () {
if (!$this.parent().is('a')) {
$this.wrap('<a href="' + src + '" ' +
(!srcExt && altExt ? ' download="' + altFilename + '" ' : '') +
' target="_blank" >');
' target="_blank" rel="noopener">');
}
});
};