Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rel=noopener to links opening in new window #1531

Merged
merged 2 commits into from Apr 18, 2016
Merged

add rel=noopener to links opening in new window #1531

merged 2 commits into from Apr 18, 2016

Conversation

splitbrain
Copy link
Collaborator

This is a security measurement supported in Chrome and Opera (and
probably other browsers soonish)

See http://mathiasbynens.github.io/rel-noopener/ for rationale

fixes #1503

This is a security measurement supported in Chrome and Opera (and
probably other browsers soonish)

See http://mathiasbynens.github.io/rel-noopener/ for rationale
@scrutinizer-notifier
Copy link

The inspection completed: 2 new issues

@@ -1682,6 +1686,7 @@ function _getMediaLinkConf($src, $title, $align, $width, $height, $cache, $rende
$link['suf'] = '';
$link['more'] = '';
$link['target'] = $conf['target']['media'];
if($conf['target']['media']) $link['rel'] = 'nofollow';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why nofollow and not noopener?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted. That's a mistake.

@Klap-in Klap-in added this to the Blockers - coming release milestone Apr 18, 2016
@splitbrain splitbrain merged commit 3faf777 into master Apr 18, 2016
@splitbrain splitbrain deleted the noopener branch April 18, 2016 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

target=_blank harmful
4 participants