add rel=noopener to all external target _blank links

This commit is contained in:
zotlabs
2017-06-13 18:29:08 -07:00
parent 7f374fe69f
commit fce68f1a39
3 changed files with 19 additions and 19 deletions

View File

@@ -22,7 +22,7 @@ class Oembed extends \Zotlabs\Web\Controller {
}
else {
echo "<html><head><base target=\"_blank\" /></head><body>";
echo "<html><head><base target=\"_blank\" rel=\"nofollow noopener\" /></head><body>";
$src = base64url_decode(argv(1));
$j = oembed_fetch_url($src);
echo $j['html'];