Explorar el Código

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>
tags/v13.0.0RC1
Thomas Citharel hace 6 años
padre
commit
feb4dc383e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      core/js/public/comments.js

+ 1
- 1
core/js/public/comments.js Ver fichero

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


Cargando…
Cancelar
Guardar