fix: reverse tabnabbing exploit in post images

v1.18.x
Julian Lam 5 years ago
parent af790e3f5e
commit 040e6a9a4c

@ -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">');
}
});
};

Loading…
Cancel
Save