Homec4science

Put rel="noreferrer" on all nonlocal links

Authored by epriestley <git@epriestley.com> on Apr 8 2014, 14:13.

Description

Put rel="noreferrer" on all nonlocal links

Summary:
Ref T4342. By default, insert rel="noreferrer" for links. We do not insert this if:

  • The caller provided an explicit "rel" attribute.
  • We recognize the link as an anchor ("#comment-2"), or as local to the current domain ("/path/to/resource").

Otherwise, add it in all cases.

Test Plan: Added and executed unit tests. (The javascript stuff which was touched a little bit has a pile of tests already, too.)

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4342

Differential Revision: https://secure.phabricator.com/D8711

Details

Committed
epriestley <git@epriestley.com>Apr 8 2014, 14:13
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU7a4f46251c21: Support HTTP basic auth in HTTPFuture
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUfd6f1829e353: Put rel="noreferrer" on all nonlocal links (authored by epriestley <git@epriestley.com>).Apr 8 2014, 14:13